Skip to content

Commit 9259cfa

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'test-unc-fetch'
Fix fetching from UNC paths. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents f717d69 + b0088db commit 9259cfa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

t/t5580-clone-push-unc.sh renamed to t/t5580-unc-paths.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,23 @@ test_expect_success clone '
4949
git clone "file://$UNCPATH" clone
5050
'
5151

52+
test_expect_success 'clone without file://' '
53+
git clone "$UNCPATH" clone-without-file
54+
'
55+
5256
test_expect_success 'clone with backslashed path' '
5357
BACKSLASHED="$(echo "$UNCPATH" | tr / \\\\)" &&
5458
git clone "$BACKSLASHED" backslashed
5559
'
5660

61+
test_expect_success fetch '
62+
git init to-fetch &&
63+
(
64+
cd to-fetch &&
65+
git fetch "$UNCPATH" master
66+
)
67+
'
68+
5769
test_expect_success push '
5870
(
5971
cd clone &&

0 commit comments

Comments
 (0)