Skip to content

Commit

Permalink
fix: inverted logic
Browse files Browse the repository at this point in the history
  • Loading branch information
avallete committed Sep 19, 2024
1 parent a4fa7fb commit 8d9e576
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func LoadConfigFS(fsys afero.Fs) error {
}
return err
}
if branch, err := GetCurrentBranchFS(fsys); err != nil {
if branch, err := GetCurrentBranchFS(fsys); err == nil {
fmt.Fprintf(GetDebugLogger(), "Current branch %s detected, attempt config overridde with [remotes.%[1]s.<scopes>] values\n", branch)
if err := Config.LoadRemoteConfigOverrides("", branch, NewRootFS(fsys)); err != nil {
return err
Expand Down

0 comments on commit 8d9e576

Please sign in to comment.