aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-23 13:02:36 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:40:29 +0100
commit839b241f0c1b8ee670be207688228e8ea71602b7 (patch)
tree3461da25b117552be061861985d6db4e5fdd3f49
parentdc1edf8e640f4d0f4d4a8bc01a7459ff8123705e (diff)
downloadgit-bug-839b241f0c1b8ee670be207688228e8ea71602b7.tar.gz
git: fix RmConfigs
-rw-r--r--repository/git.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/repository/git.go b/repository/git.go
index 836de8f0..c982f820 100644
--- a/repository/git.go
+++ b/repository/git.go
@@ -204,7 +204,7 @@ func (repo *GitRepo) ReadConfigs(keyPrefix string) (map[string]string, error) {
// RmConfigs remove all key/value pair matching the key prefix
func (repo *GitRepo) RmConfigs(keyPrefix string) error {
- _, err := repo.runGitCommand("config", "--remove-section", keyPrefix)
+ _, err := repo.runGitCommand("config", "--unset-all", keyPrefix)
return err
}