diff --git a/scripts/create_tarball.sh b/scripts/create_tarball.sh index 542c78a4ff9a430ed210e9ea9c34f475e089934a..1d399da1858c225525133be29d93026bb57c13d8 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