mirror of
https://github.com/MichaelMure/git-bug.git
synced 2024-12-15 02:01:43 +03:00
git: fix RmConfigs
This commit is contained in:
parent
dc1edf8e64
commit
839b241f0c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user