All of lore.kernel.org
 help / color / mirror / Atom feed
* Cloning of submodule with --depth should follow the branch option
@ 2015-11-02  7:55 Mikhail Zabaluev
  0 siblings, 0 replies; only message in thread
From: Mikhail Zabaluev @ 2015-11-02  7:55 UTC (permalink / raw)
  To: git

Hi,

I have an issue with git 2.4.3 when trying to limit the amount of data
fetched when cloning submodules. The --depth option is useful, but
when .gitmodules specifies a non-default branch, the submodule
repository clone invocation (which is a single-branch clone due to
--depth) fetches master regardless, and then checkout fails due to a
nonexistent tree reference. I think it would be sensible in this case
to pass --branch to the submodule clone command.

Here's a repository to exercise: https://github.com/gi-rust/gir

Best regards,
  Mikhail

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-02  7:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-02  7:55 Cloning of submodule with --depth should follow the branch option Mikhail Zabaluev

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.