Skip to content

Commit

Permalink
Ensure that we can get a commit number from git
Browse files Browse the repository at this point in the history
Currently, git describe fails with "fatal: No names found, cannot describe anything."
  • Loading branch information
invisibleroads committed Nov 15, 2013
1 parent c70882a commit 2d7514f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ def build_extensions(self):
try:
import subprocess
try:
pipe = subprocess.Popen(["git", "describe", "HEAD"],
pipe = subprocess.Popen(["git", "describe", "--always"],
stdout=subprocess.PIPE).stdout
except OSError:
# msysgit compatibility
pipe = subprocess.Popen(
["git.cmd", "describe", "HEAD"],
["git.cmd", "describe", "--always"],
stdout=subprocess.PIPE).stdout
rev = pipe.read().strip()
# makes distutils blow up on Python 2.7
Expand Down

0 comments on commit 2d7514f

Please sign in to comment.