Skip to content

Commit

Permalink
Merge branch 'js/test-unc-fetch'
Browse files Browse the repository at this point in the history
Test updates.

* js/test-unc-fetch:
  t5580: test cloning without file://, test fetching via UNC paths
  • Loading branch information
gitster committed Feb 17, 2020
2 parents 6365058 + bfe2bbb commit fc25a19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions t/t5580-clone-push-unc.sh → t/t5580-unc-paths.sh
Expand Up @@ -40,11 +40,23 @@ test_expect_success clone '
git clone "file://$UNCPATH" clone
'

test_expect_success 'clone without file://' '
git clone "$UNCPATH" clone-without-file
'

test_expect_success 'clone with backslashed path' '
BACKSLASHED="$(echo "$UNCPATH" | tr / \\\\)" &&
git clone "$BACKSLASHED" backslashed
'

test_expect_success fetch '
git init to-fetch &&
(
cd to-fetch &&
git fetch "$UNCPATH" master
)
'

test_expect_success push '
(
cd clone &&
Expand Down

0 comments on commit fc25a19

Please sign in to comment.