From b7a71b885edd7748634ddd998a97b1a2f1011199 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 2 Apr 2014 09:58:56 +0800 Subject: [PATCH] Make sure tags are pushed. --- script/bump-version.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/script/bump-version.py b/script/bump-version.py index 485097fe53bf..a1ce4a20bfeb 100755 --- a/script/bump-version.py +++ b/script/bump-version.py @@ -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__':