##// END OF EJS Templates
use check_call for git add and commit...
MinRK -
Show More
@@ -70,18 +70,10 b" def backport_pr(branch, num, project='ipython/ipython'):"
70
70
71 filenames = [ f['filename'] for f in files ]
71 filenames = [ f['filename'] for f in files ]
72
72
73 add = Popen(['git', 'add'] + filenames)
73 check_call(['git', 'add'] + filenames)
74 add.wait()
74
75 if add.returncode:
75 check_call(['git', 'commit', '-m', msg])
76 print("add failed!")
77 return 1
78
76
79 commit = Popen(['git', 'commit', '-m', msg])
80 commit.wait()
81 if commit.returncode:
82 print("commit failed!")
83 return 1
84 else:
85 print("PR #%i applied, with msg:" % num)
77 print("PR #%i applied, with msg:" % num)
86 print()
78 print()
87 print(msg)
79 print(msg)
General Comments 0
You need to be logged in to leave comments. Login now