From 963b73a8aa8965a69741be97d1667285ddc968c7 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 8 Aug 2013 17:49:35 +0800 Subject: [PATCH] Use result of `git describe` as version. --- script/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- 2.43.0