Re: git fetch origin $SHA1 doesn't work as often as it could

2016-05-18 Thread JP Sugarbroad
On Wed, May 18, 2016 at 5:59 PM, Junio C Hamano wrote: > The commit from the submodule that is bound to the superproject may > no longer be sitting at the tip of any branch in the submodule. The > hack you are outlining here would not help, and invites "the feature > works some of the time (i.e.

git fetch origin $SHA1 doesn't work as often as it could

2016-05-18 Thread JP Sugarbroad
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