Skip to content

Commit 755be63

Browse files
committed
t5509: specify bare repository path explicitly
After switching from `-C pushee` to `--git-dir=pushee` as part of the `safe.bareRepository` preparation, `ext::` URLs that used `.` (resolved relative to the `-C` target) must spell out the directory name explicitly. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent 92516cc commit 755be63

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

t/t5509-fetch-push-namespaces.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,17 @@ test_expect_success 'mirroring a repository using a ref namespace' '
8888

8989
test_expect_success 'hide namespaced refs with transfer.hideRefs' '
9090
GIT_NAMESPACE=namespace \
91-
git -C pushee -c transfer.hideRefs=refs/tags \
92-
ls-remote "ext::git %s ." >actual &&
91+
git --git-dir=pushee -c transfer.hideRefs=refs/tags \
92+
ls-remote "ext::git %s pushee" >actual &&
9393
printf "$commit1\trefs/heads/main\n" >expected &&
9494
test_cmp expected actual
9595
'
9696

9797
test_expect_success 'check that transfer.hideRefs does not match unstripped refs' '
9898
git -C pushee pack-refs --all &&
9999
GIT_NAMESPACE=namespace \
100-
git -C pushee -c transfer.hideRefs=refs/namespaces/namespace/refs/tags \
101-
ls-remote "ext::git %s ." >actual &&
100+
git --git-dir=pushee -c transfer.hideRefs=refs/namespaces/namespace/refs/tags \
101+
ls-remote "ext::git %s pushee" >actual &&
102102
printf "$commit1\trefs/heads/main\n" >expected &&
103103
printf "$commit0\trefs/tags/0\n" >>expected &&
104104
printf "$commit1\trefs/tags/1\n" >>expected &&
@@ -107,8 +107,8 @@ test_expect_success 'check that transfer.hideRefs does not match unstripped refs
107107

108108
test_expect_success 'hide full refs with transfer.hideRefs' '
109109
GIT_NAMESPACE=namespace \
110-
git -C pushee -c transfer.hideRefs="^refs/namespaces/namespace/refs/tags" \
111-
ls-remote "ext::git %s ." >actual &&
110+
git --git-dir=pushee -c transfer.hideRefs="^refs/namespaces/namespace/refs/tags" \
111+
ls-remote "ext::git %s pushee" >actual &&
112112
printf "$commit1\trefs/heads/main\n" >expected &&
113113
test_cmp expected actual
114114
'

0 commit comments

Comments
 (0)