summaryrefslogtreecommitdiffstats
path: root/gitcommands.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-06 18:55:08 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-06 18:55:08 +1000
commitb1918f2f688891efd34a190a210f10ec35c160f3 (patch)
tree624f275353c7c4b2809229968daec38477bab90f /gitcommands.go
parent0e0acc90e1d2bbd7cfdaca5184adc8f722027896 (diff)
no panic on git commit error
Diffstat (limited to 'gitcommands.go')
-rw-r--r--gitcommands.go5
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) {