Skip to content

Commit

Permalink
Force git clean to remove dirs with .git repos (#528)
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
AdamBrousseau authored and karianna committed Sep 19, 2018
1 parent d03d9cf commit 340b34e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makejdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 340b34e

Please sign in to comment.