aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-05-25 14:42:46 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-05-25 14:42:46 +0200
commit30927cd7ca754b33e515799d282f9af3e979cf94 (patch)
tree746c51dec09e990388bd92112a131ad0727463e2 /pkg/vcs
parent73964a9b3ac3d323a26848b760d648720c5b4a7b (diff)
pkg/vcs: run git clean with switching commits
Maybe it will help to fix: https://groups.google.com/forum/#!topic/syzkaller-bugs/2lgvlHd8t1c
Diffstat (limited to 'pkg/vcs')
-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")
}