aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-05-26 16:30:29 +0200
committerGuido Günther <agx@sigxcpu.org>2017-05-26 16:30:29 +0200
commit0372be09cf6f68c4ade2e74b66cac8251d005a66 (patch)
treea8936b3e012d42a3b1907e3b9440b292e6838b0e /gbp/git
parentd488ac4fae3683c059de9ef7d7675150acdc2ef1 (diff)
GitRepository: add set_config
Diffstat (limited to 'gbp/git')
-rw-r--r--gbp/git/repository.py7
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.