]> khamidou — GitHub mirrors - electron.git/commitdiff
Use result of `git describe` as version.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 8 Aug 2013 09:49:35 +0000 (17:49 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 8 Aug 2013 09:49:35 +0000 (17:49 +0800)
script/upload.py

index c8741710c6383080357bbbab4e938466f9db3449..df698932f0ab0aa226cc410b2944435006009fc1 100755 (executable)
@@ -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'))