summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-06-19 17:55:54 +0000
committerJunio C Hamano <gitster@pobox.com>2020-06-19 14:04:08 -0700
commit97997e6ad2790e58c727c180548a3d0073c4c1d2 (patch)
treecda38ea87b2552030b84b457ddd4d6db71ba1ea8 /commit.h
parent793731f742ab1df28deb289714e61244e3de3b37 (diff)
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 <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
0 files changed, 0 insertions, 0 deletions