From fcd605e5bdcf242dd0975b03713297bbfc08e687 Mon Sep 17 00:00:00 2001 From: Kevin Joiner <10265309+KevinJoiner@users.noreply.github.com> Date: Tue, 31 Jan 2023 16:20:12 -0500 Subject: [PATCH] Fix git reset command (#263) Co-authored-by: Kevin Joiner --- pkg/git/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/git/git.go b/pkg/git/git.go index 9960613a..3309de02 100644 --- a/pkg/git/git.go +++ b/pkg/git/git.go @@ -309,7 +309,7 @@ func (g *Git) fetchAndReset(rev string) error { } func (g *Git) reset(rev string) error { - return g.git("-C", g.Directory, "reset", "--hard", "--", rev) + return g.git("-C", g.Directory, "reset", "--hard", rev) } func (g *Git) currentCommit() (string, error) {