test-lib: parse options in a for loop to keep $@ intact
[gitweb.git] / t / t5410-receive-pack-alternates.sh
index 49d0fe44fbce0a1d21b773ec8b565763de5a8206..f00d0da8606dbc26d6d45c987a763798d2187e31 100755 (executable)
@@ -23,11 +23,19 @@ test_expect_success 'with core.alternateRefsCommand' '
                        --format="%(objectname)" \
                        refs/heads/public/
        EOF
-       test_config -C fork core.alternateRefsCommand alternate-refs &&
+       test_config -C fork core.alternateRefsCommand ./alternate-refs &&
        git rev-parse public/branch >expect &&
        printf "0000" | git receive-pack fork >actual &&
        extract_haves <actual >actual.haves &&
        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