aboutsummaryrefslogtreecommitdiff
path: root/gbp/git_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git_utils.py')
-rw-r--r--gbp/git_utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index da8884e..ce4ebed 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -153,6 +153,12 @@ class GitRepository(object):
GitRm(verbose=verbose)(files)
return not self.is_clean()[0]
+ def get_config(self, name):
+ """Gets the config value associated with name"""
+ self.__check_path()
+ value, ret = self.__git_getoutput('config', [ name ])
+ if ret: raise KeyError
+ return value[0][:-1] # first line with \n ending removed
def create_repo(path):
"""create a repository at path"""