From 340b34ec81360120f15a2afe9990c9b4f5c6d46a Mon Sep 17 00:00:00 2001 From: AdamBrousseau Date: Wed, 19 Sep 2018 04:44:41 -0400 Subject: [PATCH] Force git clean to remove dirs with .git repos (#528) - Git clean -fxd will not remove directories that contain a Git repository (.git folder). - Adding a second force will remove these folders - Ref https://git-scm.com/docs/git-clean#git-clean---force Signed-off-by: Adam Brousseau --- makejdk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makejdk.sh b/makejdk.sh index 3ad29f86c..f3f67ef84 100755 --- a/makejdk.sh +++ b/makejdk.sh @@ -233,7 +233,7 @@ checkOpenJDKGitRepo() if [ ! -z "$TAG" ]; then git checkout "$TAG" fi - git clean -fdx + git clean -ffdx else # The repo is not for the correct JDK Version echo "Incorrect Source Code for ${OPENJDK_FOREST_NAME}. Will re-clone"