Stefan Beller <sbeller@xxxxxxxxxx> 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 <sha1>" > 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html