Use result of git describe as version.

This commit is contained in:
Cheng Zhao 2013-08-08 17:49:35 +08:00
parent dd05759c01
commit 963b73a8aa

View file

@ -51,7 +51,7 @@ def dist_newer_than_head():
def upload(): def upload():
os.chdir(SOURCE_ROOT) os.chdir(SOURCE_ROOT)
bucket, access_key, secret_key = s3_config() 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, s3put(bucket, access_key, secret_key, SOURCE_ROOT,
'atom-shell/{0}'.format(commit), glob.glob('atom-shell*.zip')) 'atom-shell/{0}'.format(commit), glob.glob('atom-shell*.zip'))