Skip to content

Add more regression tests around fetching/cloning from UNC paths #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions t/t5580-clone-push-unc.sh → t/t5580-unc-paths.sh
Original file line number Diff line number Diff line change
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