Skip to content

Commit

Permalink
Fix git reset command (rancher#263)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Joiner <[email protected]>
  • Loading branch information
2 people authored and brandond committed Feb 7, 2023
1 parent 5db37d8 commit 1131b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1131b37

Please sign in to comment.