diff options
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(): |