summaryrefslogtreecommitdiff
path: root/t/t9825-git-p4-handle-utf16-without-bom.sh
diff options
context:
space:
mode:
authorLibravatar brian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:14:25 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-07-30 09:16:49 -0700
commitc49fe07cffd1ce6d7797f5b5616ecd53dddca744 (patch)
tree19012bd9a4a4f8ac35a8cbf03571a49031c62a3d /t/t9825-git-p4-handle-utf16-without-bom.sh
parentt: allow testing different hash algorithms via environment (diff)
downloadtgif-c49fe07cffd1ce6d7797f5b5616ecd53dddca744.tar.xz
t: make SHA1 prerequisite depend on default hash
Currently, the SHA1 prerequisite depends on the output of git hash-object. However, in order for that to produce sane behavior, we must be in a repository. If we are not, the default will remain SHA-1, and we'll produce wrong results if we're using SHA-256 for the testsuite but the test assertion starts when we're not in a repository. Check the environment variable we use for this purpose, leaving it to default to SHA-1 if none is specified. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9825-git-p4-handle-utf16-without-bom.sh')
0 files changed, 0 insertions, 0 deletions