Skip to content

Commit 3a81f33

Browse files
Ramsay Jonesgitster
authored andcommitted
t5501-*.sh: Fix url passed to clone in setup test
In particular, the url passed to git-clone has an extra '/' given after the 'file://' schema prefix, thus: git clone --reference=original "file:///$(pwd)/original one Once the prefix is removed, the remainder of the url looks something like "//home/ramsay/git/t/...", which is then interpreted as an network path. This then results in a "Permission denied" error, like so: ramsay $ ls //home ls: cannot access //home: No such host or network path ramsay $ ls //home/ramsay ls: cannot access //home/ramsay: Permission denied ramsay $ In order to fix the problem, we simply remove the extraneous '/' character from the url. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f56ef11 commit 3a81f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t5501-fetch-push-alternates.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test_expect_success setup '
2828
done
2929
) &&
3030
(
31-
git clone --reference=original "file:///$(pwd)/original" one &&
31+
git clone --reference=original "file://$(pwd)/original" one &&
3232
cd one &&
3333
echo Z >count &&
3434
git add count &&

0 commit comments

Comments
 (0)