summaryrefslogtreecommitdiffstats
path: root/support/download/git
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@gmail.com>2017-04-20 03:36:47 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-20 22:27:23 +0200
commit5d6ec40b757e664a71f7e2f5012d1efa87b3f4f5 (patch)
treed5ce08322d4ae839edd5c2fe7fe5ed1d7d315c75 /support/download/git
parentb51ed6312db602556f399a872ec95078a7e755b3 (diff)
downloadbuildroot-5d6ec40b757e664a71f7e2f5012d1efa87b3f4f5.tar.gz
buildroot-5d6ec40b757e664a71f7e2f5012d1efa87b3f4f5.zip
download/git: clarify why .git is removed
The removal of the .git dir before creating the tarball is not anymore just an optimization. It is necessary to make the tarball reproducible. Also, without the removal, large tarballs (gigabytes) would be created for some linux trees. Update the comment accordingly. Reported-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/download/git')
-rwxr-xr-xsupport/download/git5
1 files changed, 4 insertions, 1 deletions
diff --git a/support/download/git b/support/download/git
index 056057c700..fc2957d2ca 100755
--- a/support/download/git
+++ b/support/download/git
@@ -85,8 +85,11 @@ if [ ${recurse} -eq 1 ]; then
_git submodule update --init --recursive
fi
-# We do not need the .git dir; we keep other .git files, in case they
+# We do not want the .git dir; we keep other .git files, in case they
# are the only files in their directory.
+# The .git dir would generate non reproducible tarballs as it depends on
+# the state of the remote server. It also would generate large tarballs
+# (gigabytes for some linux trees) when a full clone took place.
rm -rf .git
popd >/dev/null
OpenPOWER on IntegriCloud