Re: [PATCH] fetch-pack: always allow fetching of literal SHA1s
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- May 10, 2017, 18:54 UTC
- Message-ID
- <20170510185412.GB28740@aiede.svl.corp.google.com>
- In-Reply-To
- <2839966.sklLQJ8GHA@mfick1-lnx>
On Wed, May 10, 2017 at 12:48:37PM -0600, Martin Fick wrote:
>> Ævar Arnfjörð Bjarmason wrote:
Show 5 quoted lines
>>> Just a side question, what are the people who use this >>> feature using it for? The only thing I can think of >>> myself is some out of band ref advertisement because >>> you've got squillions of refs as a hack around git's >>> limitations in that area.
[...]
> Perhaps another use case is submodules and repo(android > tool) subprojects since they can be "pinned" to sha1s,
Yes, thanks for mentioning that. We've talked a little about making 'git fetch --recurse-submodules' use this feature, either always, or if after the usual fetch the desired commit is not available in the submodule.
Jonathan