1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-04 22:34:39 +02:00

Merge pull request #47 from karlmutch/master

Modified reference to HEAD in one case, others appear to exist for ra…
This commit is contained in:
Jesse Duffield 2018-08-07 08:26:15 +10:00 committed by GitHub
commit 9c2e1dfc6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -471,7 +471,7 @@ func gitPush() (string, error) {
}
func gitSquashPreviousTwoCommits(message string) (string, error) {
return runDirectCommand("git reset --soft head^ && git commit --amend -m \"" + message + "\"")
return runDirectCommand("git reset --soft HEAD^ && git commit --amend -m \"" + message + "\"")
}
func gitRenameCommit(message string) (string, error) {