summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsupport/download/git6
1 files changed, 3 insertions, 3 deletions
diff --git a/support/download/git b/support/download/git
index 45802d3dd1..663006b4d0 100755
--- a/support/download/git
+++ b/support/download/git
@@ -83,9 +83,9 @@ if [ ${recurse} -eq 1 ]; then
_git submodule update --init --recursive
fi
-# We do not need the .git dir and other gitfiles to generate the tarball
-find . \( -name .git -o -name .gitmodules -o -name .gitignore \) \
- -exec rm -rf {} +
+# We do not need the .git dir; we keep other .git files, in case they
+# are the only files in their directory.
+rm -rf .git
popd >/dev/null
OpenPOWER on IntegriCloud