summaryrefslogtreecommitdiffstats
path: root/build/util.py
diff options
context:
space:
mode:
authorJosepMaJAZ <josepma@gmail.com>2020-04-18 19:41:37 +0200
committerJosepMaJAZ <josepma@gmail.com>2020-04-18 19:41:37 +0200
commit90a639a5ef6c67b79a066584038a040f45f64166 (patch)
tree3f9502745ba34be5157de1bd514fbca1b62f21c6 /build/util.py
parent9adf8a97abb12673b85dbd3338cc215e65c06549 (diff)
Fixes to allow Scons build to work with python 3 on windows.
(we are moving away from scons to cmake, but while we're not on 2.4, we might maintain this compatibility)
Diffstat (limited to 'build/util.py')
-rw-r--r--build/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/util.py b/build/util.py
index 6c8c7a7d12..ce547688b2 100644
--- a/build/util.py
+++ b/build/util.py
@@ -71,7 +71,7 @@ def export_source(source, dest):
def get_git_revision():
- return len(os.popen("git log --pretty=oneline --first-parent").read().splitlines())
+ return os.popen("git rev-list HEAD --first-parent --count").read().strip()
def get_git_modified():