transport.c: introduce core.alternateRefsPrefixes
[gitweb.git] / t / t5410-receive-pack-alternates.sh
index 49d0fe44fbce0a1d21b773ec8b565763de5a8206..457c20c2a579d48a36a20a4742de4f7cab235f26 100755 (executable)
@@ -30,4 +30,12 @@ test_expect_success 'with core.alternateRefsCommand' '
        test_cmp expect actual.haves
 '
 
+test_expect_success 'with core.alternateRefsPrefixes' '
+       test_config -C fork core.alternateRefsPrefixes "refs/heads/private" &&
+       git rev-parse private/branch >expect &&
+       printf "0000" | git receive-pack fork >actual &&
+       extract_haves <actual >actual.haves &&
+       test_cmp expect actual.haves
+'
+
 test_done