From c70a3cdf31ba96b6382019de5d4fd7081c80fe1d Mon Sep 17 00:00:00 2001 From: Sebastian Schmitt <sebastian.schmitt@kip.uni-heidelberg.de> Date: Wed, 17 Feb 2021 18:39:11 +0100 Subject: [PATCH] Fix globbing in tarball script for releases (#1378) --- scripts/create_tarball.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/create_tarball.sh b/scripts/create_tarball.sh index 542c78a4..1d399da1 100755 --- a/scripts/create_tarball.sh +++ b/scripts/create_tarball.sh @@ -39,12 +39,12 @@ git checkout "$CHECKOUT" git submodule init git submodule update -# remove all version control files but not the .git directories themselves -rm -vrf -- **/.git/* - -# remove main .git, only submodule .gits are still present +# remove main .git rm -vrf .git +# wipe .git submodule files +find -type f -name .git | xargs truncate -s 0 + # create tar ball cd .. tar vcfz "$OUT_TARBALL" $REPO_NAME -- GitLab