From: Junio C Hamano Date: Mon, 08 Feb 2016 20:18:10 GMT Subject: Re: [RFC] On the --depth argument when fetching with submodules Message-ID: In-Reply-To: Stefan Beller writes: > ... Instead of the branch, you can just pass > a sha1 to git fetch and it sometimes works (if the server permits fetching > arbitrary or hidden sha1s. Though Jonathan noted this check may be in > the client only and the server trusts the client on not wanting arbitrary > sha1s?) allowtipsha1inwant and allowreachablesha1inwant are the server side controls that are by default off. > So for fetching I think we need to have a "--try-to-get-commit " > argument for fetch, which depending on the server capabilities and > the history obtained otherwise may try again to fetch the exact sha1. Hmph, "try"? t5516 seems to show how to do this. I however have to wonder how we disambiguate a 40-hex that is an object name and a branch whose name happens to be 40-hex.