summaryrefslogtreecommitdiff
path: root/buildscripts/utils.py
diff options
context:
space:
mode:
authorMathew Robinson <chasinglogic@gmail.com>2019-05-07 13:29:58 -0400
committerMathew Robinson <chasinglogic@gmail.com>2019-05-07 13:54:44 -0400
commit14c4a6e66351e07b1965622b4e8fb8d5bf0a04e2 (patch)
tree005002edacd42c0da392acabccc36d981c9599bd /buildscripts/utils.py
parentef53c85ff0d5f19d82a240f54f2cbc22fa8687b4 (diff)
downloadmongo-14c4a6e66351e07b1965622b4e8fb8d5bf0a04e2.tar.gz
SERVER-41038 Guarantee that git describe returns the same number of digits regardless of version
Diffstat (limited to 'buildscripts/utils.py')
-rw-r--r--buildscripts/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/utils.py b/buildscripts/utils.py
index e70b7a98553..4e2edcc76e5 100644
--- a/buildscripts/utils.py
+++ b/buildscripts/utils.py
@@ -95,9 +95,9 @@ def get_git_version():
def get_git_describe():
- """Return 'git describe'."""
+ """Return 'git describe --abbrev=7'."""
with open(os.devnull, "r+") as devnull:
- proc = subprocess.Popen("git describe", stdout=subprocess.PIPE, stderr=devnull,
+ proc = subprocess.Popen("git describe --abbrev=7", stdout=subprocess.PIPE, stderr=devnull,
stdin=devnull, shell=True)
return proc.communicate()[0].strip().decode('utf-8')