Skip to content

Commit

Permalink
fix git reset --hard command (#371)
Browse files Browse the repository at this point in the history
Signed-off-by: Kent <[email protected]>
  • Loading branch information
krancour authored May 15, 2023
1 parent 6cb1b91 commit f806a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/git/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func (r *repo) RemoteBranchExists(branch string) (bool, error) {

func (r *repo) ResetHard() error {
_, err :=
libExec.Exec(r.buildCommand("git", "reset", "--hard"))
libExec.Exec(r.buildCommand("reset", "--hard"))
return errors.Wrap(err, "error resetting branch working tree")
}

Expand Down

0 comments on commit f806a4a

Please sign in to comment.