diff options
author | Robin Gareus <robin@gareus.org> | 2013-01-21 22:41:31 +0000 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-01-21 22:41:31 +0000 |
commit | daf22cd3271cebeb5742a064c0de5e91d59f8ea1 (patch) | |
tree | 992dd28a50bc1182f5f4cd5ca941b91bb821e847 /wscript | |
parent | 049fda91cc227d13f76b56edc290850844bc9254 (diff) |
fix git-svn version extraction for local git branches
git-svn-id: svn://localhost/ardour2/branches/3.0@13962 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -69,10 +69,12 @@ def fetch_gcc_version (CC): return version def fetch_git_revision (path): - cmd = "LANG= git log --abbrev HEAD^..HEAD " + path + cmd = "LANG= git log --abbrev HEAD^..HEAD" output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines() o = output[0].decode('utf-8') rev = o.replace ("commit", "git")[0:10] + cmd = "LANG= git log --abbrev -n1 --grep 'git-svn-id'" + output = subprocess.Popen(cmd, shell=True, stderr=subprocess.STDOUT, stdout=subprocess.PIPE).communicate()[0].splitlines() for line in output: try: if "git-svn-id" in line: |