Re: git fails to checkout SHA1 submodule in SHA256 repo with --depth=1
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 12, 2025, 16:32 UTC
- Message-ID
- <xmqq7bvvtdoe.fsf@gitster.g>
- In-Reply-To
- <c94a929df63f79e49eeae0cd67c1f59f859e3d62.camel@suse.com>
Martin Wilck <mwilck@suse.com> writes:
>> Subject: Re: git fails to checkout SHA1 submodule in SHA256 repo with --depth=1
I think it is not supposed to work to mix repositories like this, regardless of any other option like --depth. I think brian gave a response to that effect in a thread in the past few months.
... goes and looks ...
https://lore.kernel.org/git/aJ5gOPQ9oologqj-@fruit.crustytoothpaste.net/ https://lore.kernel.org/git/aKPJNNWMW9gtueEK@fruit.crustytoothpaste.net/