From 30927cd7ca754b33e515799d282f9af3e979cf94 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 25 May 2020 14:42:46 +0200 Subject: pkg/vcs: run git clean with switching commits Maybe it will help to fix: https://groups.google.com/forum/#!topic/syzkaller-bugs/2lgvlHd8t1c --- pkg/vcs/git.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/vcs') 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") } -- cgit mrf-deployment