diff options
Diffstat (limited to 'build/bin')
-rwxr-xr-x | build/bin/tagrelease.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/bin/tagrelease.py b/build/bin/tagrelease.py index 40bc42a352..8745553596 100755 --- a/build/bin/tagrelease.py +++ b/build/bin/tagrelease.py @@ -22,7 +22,10 @@ def readMap(fin, separator): return values def getSvnInfo(): - pin = os.popen("svn info", "r") + if os.path.exists(".svn"): + pin = os.popen("svn info", "r") + elif os.path.exists(".git"): + pin = os.popen("git svn info", "r") values = readMap(pin, r'^([^:]+):\s*(.+)$') pin.close() return values |