diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2019-05-07 13:29:58 -0400 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2019-05-07 13:54:44 -0400 |
commit | 14c4a6e66351e07b1965622b4e8fb8d5bf0a04e2 (patch) | |
tree | 005002edacd42c0da392acabccc36d981c9599bd /buildscripts/utils.py | |
parent | ef53c85ff0d5f19d82a240f54f2cbc22fa8687b4 (diff) | |
download | mongo-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.py | 4 |
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') |