1 --- SConstruct.orig 2010-06-13 19:27:24.000000000 +0200
2 +++ SConstruct 2011-07-26 20:26:12.253266624 +0200
5 gitlog = subprocess.Popen(["git", "show", "--abbrev-commit"], stdout=subprocess.PIPE)
7 - print("Not a Git repository. Can't fetch commit id.")
11 - commit_string = gitlog.communicate()[0].split("\n")[0].split(" ")[1]
12 - print("Current Git commit id is: "+commit_string)
13 + if gitlog.poll() != "0":
14 + print("Not a Git repository. Can't fetch commit id.")
17 + commit_string = gitlog.communicate()[0].split("\n")[0].split(" ")[1]
18 + print("Current Git commit id is: "+commit_string)
21 def write_git_rev(commit_id):