Skip to content

Commit

Permalink
fix(config): config.Copy() copies over the path
Browse files Browse the repository at this point in the history
previously `config.Copy()` erroneously did not copy over the config path.
  • Loading branch information
ramfox committed Jun 12, 2019
1 parent 8620aa0 commit 2fd3420
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ func (cfg *Config) Copy() *Config {
res := &Config{
Revision: cfg.Revision,
}

if cfg.path != "" {
res.path = cfg.path
}
if cfg.Profile != nil {
res.Profile = cfg.Profile.Copy()
}
Expand Down

0 comments on commit 2fd3420

Please sign in to comment.