aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/vcs/git.go')
-rw-r--r--pkg/vcs/git.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/vcs/git.go b/pkg/vcs/git.go
index a6982aba0..49a795e12 100644
--- a/pkg/vcs/git.go
+++ b/pkg/vcs/git.go
@@ -145,6 +145,7 @@ func (git *git) clone(repo, branch string) error {
func (git *git) reset() {
// This function tries to reset git repo state to a known clean state.
git.git("reset", "--hard")
+ git.git("clean", "-fd")
git.git("bisect", "reset")
git.git("reset", "--hard")
}