diff options
Diffstat (limited to 'subcmds/cherry_pick.py')
-rw-r--r-- | subcmds/cherry_pick.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py index c333fcf4..4b7f1412 100644 --- a/subcmds/cherry_pick.py +++ b/subcmds/cherry_pick.py | |||
@@ -72,11 +72,9 @@ change id will be added. | |||
72 | new_msg = self._Reformat(old_msg, sha1) | 72 | new_msg = self._Reformat(old_msg, sha1) |
73 | 73 | ||
74 | p = GitCommand(None, ['commit', '--amend', '-F', '-'], | 74 | p = GitCommand(None, ['commit', '--amend', '-F', '-'], |
75 | provide_stdin=True, | 75 | input=new_msg, |
76 | capture_stdout=True, | 76 | capture_stdout=True, |
77 | capture_stderr=True) | 77 | capture_stderr=True) |
78 | p.stdin.write(new_msg) | ||
79 | p.stdin.close() | ||
80 | if p.Wait() != 0: | 78 | if p.Wait() != 0: |
81 | print("error: Failed to update commit message", file=sys.stderr) | 79 | print("error: Failed to update commit message", file=sys.stderr) |
82 | sys.exit(1) | 80 | sys.exit(1) |