From f7abec2d1d1e52f49f7d95c48165cde8cf41edb6 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 16 Mar 2011 17:07:08 +0100 Subject: [PATCH] fetch/git: clone the repository as bare This will reduce the space used and speed up the clone as it is only used to generate an archive, which doesn't need the git working tree. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Acked-by: Thomas Petazzoni Tested-by: Thomas Petazzoni Signed-off-by: Peter Korsgaard --- package/Makefile.package.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/Makefile.package.in b/package/Makefile.package.in index 84687d58ec..bf4e1b49a3 100644 --- a/package/Makefile.package.in +++ b/package/Makefile.package.in @@ -105,7 +105,7 @@ endif define DOWNLOAD_GIT test -e $(DL_DIR)/$($(PKG)_SOURCE) || \ (pushd $(DL_DIR) > /dev/null && \ - $(GIT) clone $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \ + $(GIT) clone --bare $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \ pushd $($(PKG)_BASE_NAME) > /dev/null && \ $(GIT) archive --format=tar --prefix=$($(PKG)_BASE_NAME)/ $($(PKG)_DL_VERSION) | \ gzip -c > $(DL_DIR)/$($(PKG)_SOURCE) && \ -- 2.30.2