summaryrefslogtreecommitdiff
path: root/gr-utils/python/modtool/scm.py
diff options
context:
space:
mode:
Diffstat (limited to 'gr-utils/python/modtool/scm.py')
-rw-r--r--gr-utils/python/modtool/scm.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/scm.py b/gr-utils/python/modtool/scm.py
index 9b0ef7db5e..aa4f94d531 100644
--- a/gr-utils/python/modtool/scm.py
+++ b/gr-utils/python/modtool/scm.py
@@ -81,6 +81,13 @@ class SCMRepository(object):
""" Returns true if this repository manager is operating on an active, source-controlled directory. """
return self.is_empty
+ def get_gituser(self):
+ """ Gets the git user """
+ try:
+ return subprocess.check_output('git config --global user.name', shell=True).strip()
+ except (OSError, subprocess.CalledProcessError):
+ return None
+
### Git #####################################################################
class GitManagerGitPython(object):