git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git fetch origin $SHA1 doesn't work as often as it could
@ 2016-05-18 20:20 JP Sugarbroad
  2016-05-18 21:59 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: JP Sugarbroad @ 2016-05-18 20:20 UTC (permalink / raw)
  To: git

So I'm trying to make cloning the rust repo a little easier, and I
noticed there's a new feature to `git submodule update --depth=1` --
but it doesn't work for this, even though it could.

Reason is that fetch-pack will only fetch by sha1 if the remote
specifies allow_tip/unreachable_sha1, even if the sha1 specified
matches an advertised ref.

My thought is to rework filter_refs() to match on oid if matching on
name fails. Thoughts?

- JP

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

end of thread, other threads:[~2016-05-19  1:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-18 20:20 git fetch origin $SHA1 doesn't work as often as it could JP Sugarbroad
2016-05-18 21:59 ` Junio C Hamano
2016-05-18 22:40   ` JP Sugarbroad
2016-05-19  1:53     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).