diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-05-26 16:30:29 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-05-26 16:30:29 +0200 |
commit | 0372be09cf6f68c4ade2e74b66cac8251d005a66 (patch) | |
tree | a8936b3e012d42a3b1907e3b9440b292e6838b0e /gbp/git | |
parent | d488ac4fae3683c059de9ef7d7675150acdc2ef1 (diff) |
GitRepository: add set_config
Diffstat (limited to 'gbp/git')
-rw-r--r-- | gbp/git/repository.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 2cf48791..991b0fa0 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1110,6 +1110,13 @@ class GitRepository(object): raise KeyError return value[0][:-1] # first line with \n ending removed + def set_config(self, name, value): + """ + Set a git config value in this repository + """ + args = GitArgs(name, value) + self._git_command("config", args.args) + def set_user_name(self, name): """ Sets the full name to use for git commits. |