Commit b28f1e9f authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #173 from yarikoptic/upstream-0.17

BF: replace show-ref with rev-parse --verify for determining current treeish location
parents 53db1cdd 751f9839
...@@ -27,7 +27,7 @@ class sdist(sdist_orig): ...@@ -27,7 +27,7 @@ class sdist(sdist_orig):
self.force_manifest = 1 self.force_manifest = 1
if (sys.platform != "win32" and if (sys.platform != "win32" and
os.path.isdir('.git')): os.path.isdir('.git')):
assert os.system("git show-ref -s HEAD > .gitrev") == 0 assert os.system("git rev-parse --verify HEAD > .gitrev") == 0
sdist_orig.run(self) sdist_orig.run(self)
add_command_class('sdist', sdist) add_command_class('sdist', sdist)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment