From 16e3d5f09277c8a556482fa309f3ed6d67d04293 Mon Sep 17 00:00:00 2001 From: Karl Mutch Date: Mon, 6 Aug 2018 13:30:21 -0700 Subject: [PATCH] Modified reference to HEAD in one case, others appear to exist for ranges but I am not familiar enough with these. --- gitcommands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitcommands.go b/gitcommands.go index 80bbef860..1a151310f 100644 --- a/gitcommands.go +++ b/gitcommands.go @@ -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) {