All of lore.kernel.org
 help / color / mirror / Atom feed
* git clone submodules recursive and reference
@ 2012-04-20 15:12 Samuel Maftoul
  2012-04-20 18:59 ` Jens Lehmann
  0 siblings, 1 reply; 7+ messages in thread
From: Samuel Maftoul @ 2012-04-20 15:12 UTC (permalink / raw)
  To: git

Hello,

I'm using git clone --reference, it works like a charm !

Now, I have submodules, so I call git clone with both --recursive and
--reference, works only for the repo itself, submodules are being
cloned without the "--reference" option.

With GIT_TRACE=1 I can see this for the initial repo:

trace: built-in: git 'clone' '--recursive' '--reference' [...]

And this for the submodules:

trace: built-in: git 'clone' '-n' [...]

for every submodules.

Is this an intended behavior ?

How can I force the clones for submodules to be executed with the
--reference option ?

I tried to wrap /usr/lib/git-core/git-clone, but GIT_TRACE states it,
it's a builtin and indeed my wrapped version of git clone is not
executed !

Thanks

--

Samuel MAFTOUL

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

end of thread, other threads:[~2012-06-29 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-20 15:12 git clone submodules recursive and reference Samuel Maftoul
2012-04-20 18:59 ` Jens Lehmann
2012-04-20 19:26   ` Samuel Maftoul
2012-04-21 13:45     ` Jens Lehmann
2012-04-23  8:06       ` Samuel Maftoul
2012-04-23 21:20         ` Jens Lehmann
2012-06-29 20:19   ` Phil Hord

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.