From: Cheng Zhao Date: Thu, 8 Aug 2013 09:49:35 +0000 (+0800) Subject: Use result of `git describe` as version. X-Git-Tag: v0.3.1~5 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=963b73a8aa8965a69741be97d1667285ddc968c7;p=electron.git Use result of `git describe` as version. --- diff --git a/script/upload.py b/script/upload.py index c8741710..df698932 100755 --- a/script/upload.py +++ b/script/upload.py @@ -51,7 +51,7 @@ def dist_newer_than_head(): def upload(): os.chdir(SOURCE_ROOT) bucket, access_key, secret_key = s3_config() - commit = subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip() + commit = subprocess.check_output(['git', 'describe', '--tags']).strip() s3put(bucket, access_key, secret_key, SOURCE_ROOT, 'atom-shell/{0}'.format(commit), glob.glob('atom-shell*.zip'))