mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
Use "git-svn find-rev HEAD" to find revision of git-svn.
This commit is contained in:
parent
19a9bf8ce1
commit
439b66e82a
@ -294,10 +294,8 @@ if env["PLATFORM"] == 'darwin': # Mac OS X
|
||||
env.Append(FRAMEWORKS = "Carbon") # Carbon GUI
|
||||
|
||||
if os.path.exists('.git'):
|
||||
import re
|
||||
p = re.compile('Revision: ([0-9]+)');
|
||||
try:
|
||||
env["svnrev"] = p.search(Popen(Split("git-svn info"), stdout=PIPE).communicate()[0]).group(1)
|
||||
env["svnrev"] = Popen(Split("git-svn find-rev HEAD"), stdout=PIPE).communicate()[0].rstrip("\n")
|
||||
except:
|
||||
env["svnrev"] = ""
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user