mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 18:30:53 +00:00
[tools] improve recording latest commit id in gen-tarball.py
This commit is contained in:
@@ -121,7 +121,8 @@ def main():
|
|||||||
if not exist_in_path('django-admin') and not exist_in_path('django-admin.py'):
|
if not exist_in_path('django-admin') and not exist_in_path('django-admin.py'):
|
||||||
error('django-admin scripts not found in PATH')
|
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
|
# begin
|
||||||
tmpdir = tempfile.mkdtemp()
|
tmpdir = tempfile.mkdtemp()
|
||||||
|
Reference in New Issue
Block a user