Skip to contentSkip to conversation

fetch/git: clone the as bare

PATCH Superseded Jean-Christophe PLAGNIOL-VILLARD 3 participants 4 messages Mar 15, 2011 – Mar 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch/git: clone the as bare

this will reduce the space used and speed up the clone
as we will generate an archive later which does need the tree checkouted

---
 package/Makefile.package.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/Makefile.package.in +1 -1
index 84687d5..bf4e1b4 100644
@@ -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) && \
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/1 fetch/git: clone the as bare

Quoted 4 lines · On Tue, 15 Mar 2011 13:49:58 +0100 Jean-Christophe PLAGNIOL-VILLARD…

this will reduce the space used and speed up the clone
as we will generate an archive later which does need the tree checkouted

Sounds good to me.

Could you resend a new version with a correct title, such as "fetch/git: clone the repository as bare" or something like that ?

It would then get my:

Thanks!

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 fetch/git: clone the repository as bare

In reply to Jean-Christophe PLAGNIOL-VILLARD

this will reduce the space used and speed up the clone
as we will generate an archive later which does need the tree checkouted

---
v2:

Fix subject

Best Regards,
J.

 package/Makefile.package.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
package/Makefile.package.in +1 -1
index 84687d5..bf4e1b4 100644
@@ -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) && \
Signature · 1 line
1.7.4.1
#3 lore raw

PATCH v2 1/1 fetch/git: clone the repository as bare

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <[email protected]> writes:

Jean-Christophe> this will reduce the space used and speed up the clone Jean-Christophe> as we will generate an archive later which does need the tree checkouted

Committed with slightly tweaked commit message, thanks.

Signature · 1 line
Bye, Peter Korsgaard