diff options
author | JosepMaJAZ <josepma@gmail.com> | 2020-04-18 19:41:37 +0200 |
---|---|---|
committer | JosepMaJAZ <josepma@gmail.com> | 2020-04-18 19:41:37 +0200 |
commit | 90a639a5ef6c67b79a066584038a040f45f64166 (patch) | |
tree | 3f9502745ba34be5157de1bd514fbca1b62f21c6 /build/util.py | |
parent | 9adf8a97abb12673b85dbd3338cc215e65c06549 (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.py | 2 |
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(): |