diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-06 18:55:08 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2018-08-06 18:55:08 +1000 |
commit | b1918f2f688891efd34a190a210f10ec35c160f3 (patch) | |
tree | 624f275353c7c4b2809229968daec38477bab90f /gitcommands.go | |
parent | 0e0acc90e1d2bbd7cfdaca5184adc8f722027896 (diff) |
no panic on git commit error
Diffstat (limited to 'gitcommands.go')
-rw-r--r-- | gitcommands.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gitcommands.go b/gitcommands.go index 719a8ceb0..d537672a0 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -445,9 +445,8 @@ func removeFile(file GitFile) error { return err } -func gitCommit(message string) error { - _, err := runDirectCommand("git commit -m \"" + message + "\"") - return err +func gitCommit(message string) (string, error) { + return runCommand("git commit -m \"" + message + "\"") } func gitPull() (string, error) { |