remote-curl: avoid truncating refs with ls-remote
authorbrian m. carlson <redacted>
Fri, 19 Jun 2020 17:55:54 +0000 (17:55 +0000)
committerJunio C Hamano <redacted>
Fri, 19 Jun 2020 21:04:08 +0000 (14:04 -0700)
commit97997e6ad2790e58c727c180548a3d0073c4c1d2
treecda38ea87b2552030b84b457ddd4d6db71ba1ea8
parent793731f742ab1df28deb289714e61244e3de3b37
remote-curl: avoid truncating refs with ls-remote

Normally, the remote-curl transport helper is aware of the hash
algorithm we're using because we're in a repo with the appropriate hash
algorithm set. However, when using git ls-remote outside of a
repository, we won't have initialized the hash algorithm properly, so
use hash_to_hex_algop to print the ref corresponding to the algorithm
we've detected.

Signed-off-by: brian m. carlson <redacted>
Signed-off-by: Junio C Hamano <redacted>
remote-curl.c
git clone https://git.99rst.org/PROJECT