Skip to content

Commit 34c0db8

Browse files
author
y-p
committed
Merge pull request #5520 from invisibleroads/patch-2
Ensure that we can get a commit number from git
2 parents c70882a + 2d7514f commit 34c0db8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ def build_extensions(self):
201201
try:
202202
import subprocess
203203
try:
204-
pipe = subprocess.Popen(["git", "describe", "HEAD"],
204+
pipe = subprocess.Popen(["git", "describe", "--always"],
205205
stdout=subprocess.PIPE).stdout
206206
except OSError:
207207
# msysgit compatibility
208208
pipe = subprocess.Popen(
209-
["git.cmd", "describe", "HEAD"],
209+
["git.cmd", "describe", "--always"],
210210
stdout=subprocess.PIPE).stdout
211211
rev = pipe.read().strip()
212212
# makes distutils blow up on Python 2.7

0 commit comments

Comments
 (0)