All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] support/download: fetch all refs on full git clone
@ 2015-11-07  4:39 Vivien Didelot
  2015-11-12 11:02 ` Maxime Hadjinlian
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Vivien Didelot @ 2015-11-07  4:39 UTC (permalink / raw)
  To: buildroot

When specifying BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION, a user may want to
specify the SHA of a reference different than a branch or tag.

For instance, Gerrit stores the patchsets under refs/changes/xx/xxx, and
Github stores the pull requests under refs/pull/xxx/head.

When cloning a repository with --bare, you don't fetch these references.
This patch uses --mirror for a full clone, in order to give the user
access to all references of the Git repository.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
---
 support/download/git | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/support/download/git b/support/download/git
index 0e6103b..357a558 100755
--- a/support/download/git
+++ b/support/download/git
@@ -43,7 +43,7 @@ if [ -n "$(${GIT} ls-remote "${repo}" "${cset}" 2>&1)" ]; then
 fi
 if [ ${git_done} -eq 0 ]; then
     printf "Doing full clone\n"
-    ${GIT} clone ${verbose} --bare "${repo}" "${basename}"
+    ${GIT} clone ${verbose} --mirror "${repo}" "${basename}"
 fi
 
 GIT_DIR="${basename}" \
-- 
2.6.2

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

end of thread, other threads:[~2015-11-29 17:53 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-07  4:39 [Buildroot] [PATCH] support/download: fetch all refs on full git clone Vivien Didelot
2015-11-12 11:02 ` Maxime Hadjinlian
2015-11-12 16:12   ` Vivien Didelot
2015-11-12 16:26     ` Maxime Hadjinlian
2015-11-12 17:07       ` Vivien Didelot
2015-11-13  6:49         ` Arnout Vandecappelle
2015-11-13 15:35           ` Vivien Didelot
2015-11-16  8:43           ` Jérôme Pouiller
2015-11-13 22:48     ` Yann E. MORIN
2015-11-13 23:04       ` Vivien Didelot
2015-11-19 17:38 ` Vivien Didelot
2015-11-29 17:53 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.