Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] fetch/git: clone the as bare
@ 2011-03-15 12:49 Jean-Christophe PLAGNIOL-VILLARD
  2011-03-15 22:33 ` Thomas Petazzoni
  2011-03-16 16:07 ` [Buildroot] [PATCHv2] fetch/git: clone the repository " Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-03-15 12:49 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 package/Makefile.package.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index 84687d5..bf4e1b4 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) && \
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH] fetch/git: clone the as bare
  2011-03-15 12:49 [Buildroot] [PATCH] fetch/git: clone the as bare Jean-Christophe PLAGNIOL-VILLARD
@ 2011-03-15 22:33 ` Thomas Petazzoni
  2011-03-16 16:07 ` [Buildroot] [PATCHv2] fetch/git: clone the repository " Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2011-03-15 22:33 UTC (permalink / raw)
  To: buildroot

On Tue, 15 Mar 2011 13:49:58 +0100
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:

> this will reduce the space used and speed up the clone
> as we will generate an archive later which does need the tree checkouted
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

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:

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCHv2] fetch/git: clone the repository as bare
  2011-03-15 12:49 [Buildroot] [PATCH] fetch/git: clone the as bare Jean-Christophe PLAGNIOL-VILLARD
  2011-03-15 22:33 ` Thomas Petazzoni
@ 2011-03-16 16:07 ` Jean-Christophe PLAGNIOL-VILLARD
  2011-03-16 21:47   ` Peter Korsgaard
  1 sibling, 1 reply; 4+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-03-16 16:07 UTC (permalink / raw)
  To: buildroot

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

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
v2:

Fix subject

Best Regards,
J.
 package/Makefile.package.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/Makefile.package.in b/package/Makefile.package.in
index 84687d5..bf4e1b4 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) && \
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCHv2] fetch/git: clone the repository as bare
  2011-03-16 16:07 ` [Buildroot] [PATCHv2] fetch/git: clone the repository " Jean-Christophe PLAGNIOL-VILLARD
@ 2011-03-16 21:47   ` Peter Korsgaard
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-03-16 21:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 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.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-03-16 21:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-15 12:49 [Buildroot] [PATCH] fetch/git: clone the as bare Jean-Christophe PLAGNIOL-VILLARD
2011-03-15 22:33 ` Thomas Petazzoni
2011-03-16 16:07 ` [Buildroot] [PATCHv2] fetch/git: clone the repository " Jean-Christophe PLAGNIOL-VILLARD
2011-03-16 21:47   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox