Skip to content

Commit 90addbc

Browse files
authored
Merge pull request #95 from kevinburke/git-clean
git: fix "git clean" invocation for submodule
2 parents 14a0906 + 5b2733d commit 90addbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (s *GitRepo) defendAgainstSubmodules() error {
181181
return NewLocalError("Unexpected error while defensively cleaning up after possible derelict submodule directories", err, string(out))
182182
}
183183
// Then, repeat just in case there are any nested submodules that went away.
184-
out, err = s.RunFromDir("git", "submodule", "foreach", "--recursive", "git", "clean", "-x", "-d", "-f", "-f")
184+
out, err = s.RunFromDir("git", "submodule", "foreach", "--recursive", "git clean -x -d -f -f")
185185
if err != nil {
186186
return NewLocalError("Unexpected error while defensively cleaning up after possible derelict nested submodule directories", err, string(out))
187187
}

0 commit comments

Comments
 (0)