Skip to content

Commit

Permalink
Use unset which is the preferred way to delete a value
Browse files Browse the repository at this point in the history
  • Loading branch information
arbourd committed Apr 3, 2024
1 parent 7a867e3 commit f2b9ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func setupEnv(gitConfigGetpath, envGetpath string) {
os.Setenv("GETPATH", envGetpath)
}

git.Config(config.Global, config.Entry(GitConfigKey, ""))
git.Config(config.Global, config.Unset(GitConfigKey, ""))
if gitConfigGetpath != "" {
git.Config(config.Global, config.Entry(GitConfigKey, gitConfigGetpath))
}
Expand Down

0 comments on commit f2b9ad8

Please sign in to comment.