]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib-functions.sh
Merge branch 'vd/fsck-submodule-url-test'
[thirdparty/git.git] / t / test-lib-functions.sh
index 1213b8398bb60289bd6eb05d1261cf7f44d522fa..b5eaf7fdc1186d4420388c355e794bfdba783f2f 100644 (file)
@@ -1659,6 +1659,11 @@ test_detect_hash () {
        test_hash_algo="${GIT_TEST_DEFAULT_HASH:-sha1}"
 }
 
+# Detect the hash algorithm in use.
+test_detect_ref_format () {
+       echo "${GIT_TEST_DEFAULT_REF_FORMAT:-files}"
+}
+
 # Load common hash metadata and common placeholder object IDs for use with
 # test_oid.
 test_oid_init () {