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 5e80e24994..4b3d5116ac 100644
--- a/gr-utils/python/modtool/scm.py
+++ b/gr-utils/python/modtool/scm.py
@@ -84,6 +84,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):