diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2020-06-19 17:55:54 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2020-06-19 14:04:08 -0700 |
| commit | 97997e6ad2790e58c727c180548a3d0073c4c1d2 (patch) | |
| tree | cda38ea87b2552030b84b457ddd4d6db71ba1ea8 /t/helper/test-oid-array.c | |
| parent | t1050: pass algorithm to index-pack when outside repo (diff) | |
| download | git-97997e6ad2790e58c727c180548a3d0073c4c1d2.tar.gz git-97997e6ad2790e58c727c180548a3d0073c4c1d2.zip | |
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 't/helper/test-oid-array.c')
0 files changed, 0 insertions, 0 deletions
