1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-13 10:25:46 +00:00

[tools] improve recording latest commit id in gen-tarball.py

This commit is contained in:
lins05 2013-07-25 11:05:17 +08:00
parent e25bebe33e
commit 1d420dcab1

View File

@ -121,7 +121,8 @@ def main():
if not exist_in_path('django-admin') and not exist_in_path('django-admin.py'):
error('django-admin scripts not found in PATH')
latest_commit_info = commands.getoutput('git log %s -1' % branch)
# Note: we double % to escape it in a format string
latest_commit_info = commands.getoutput('git log --format="%%H" %s -1' % branch)
# begin
tmpdir = tempfile.mkdtemp()