do not remove .git when MIRROR=0 passed

This reverts commit d05e2d96fc.
This commit is contained in:
Anjan Chanda
2025-12-01 09:36:49 +01:00
parent a814081a1c
commit 40912079b4

View File

@@ -224,7 +224,7 @@ define DownloadMethod/rawgit
(cd $(SUBDIR) && git checkout $(VERSION) && git submodule update --init --recursive) && \
echo "Packing checkout..." && \
export TAR_TIMESTAMP=`cd $(SUBDIR) && git log -1 --format='@%ct'` && \
rm -rf $(SUBDIR)/.git && \
$(if $(filter 0,$(MIRROR)),,rm -rf $(SUBDIR)/.git &&) \
$(call dl_tar_pack,$(TMP_DIR)/dl/$(FILE),$(SUBDIR)) && \
mv $(TMP_DIR)/dl/$(FILE) $(DL_DIR)/ && \
rm -rf $(SUBDIR);