git: fix RmConfigs

This commit is contained in:
Michael Muré 2019-02-23 13:02:36 +01:00
parent dc1edf8e64
commit 839b241f0c
No known key found for this signature in database
GPG Key ID: A4457C029293126F

View File

@ -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
}