summaryrefslogtreecommitdiff
path: root/t/t5410-receive-pack-alternates.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t5410-receive-pack-alternates.sh')
-rwxr-xr-xt/t5410-receive-pack-alternates.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5410-receive-pack-alternates.sh b/t/t5410-receive-pack-alternates.sh
index 49d0fe4..457c20c 100755
--- a/t/t5410-receive-pack-alternates.sh
+++ b/t/t5410-receive-pack-alternates.sh
@@ -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