]> khamidou — GitHub mirrors - electron.git/commitdiff
Make sure tags are pushed.
authorCheng Zhao <zcbenz@gmail.com>
Wed, 2 Apr 2014 01:58:56 +0000 (09:58 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 2 Apr 2014 01:58:56 +0000 (09:58 +0800)
script/bump-version.py

index 485097fe53bfeb78ec42fbe9cecb9ac90eba2bb6..a1ce4a20bfeb5581885b78f70011d13cf1f56392 100755 (executable)
@@ -2,10 +2,9 @@
 
 import os
 import re
-import subprocess
 import sys
 
-from lib.util import get_atom_shell_version, scoped_cwd
+from lib.util import execute, get_atom_shell_version, scoped_cwd
 
 
 SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
@@ -126,13 +125,13 @@ def update_info_plist(version):
 
 
 def tag_version(version):
-  subprocess.check_call(['git', 'commit', '-a', '-m',
-                         'Bump v{0}.'.format(version)])
-  subprocess.check_call(['git', 'tag', 'v{0}'.format(version)])
+  execute(['git', 'commit', '-a', '-m', 'Bump v{0}.'.format(version)])
+  execute(['git', 'tag', 'v{0}'.format(version)])
 
 
 def git_push():
-  subprocess.check_call(['git', 'push', '--follow-tags'])
+  execute(['git', 'push'])
+  execute(['git', 'push', '--tags'])
 
 
 if __name__ == '__main__':