mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
no panic on git commit error
This commit is contained in:
parent
0e0acc90e1
commit
b1918f2f68
2 changed files with 4 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue