t5580: test cloning without file://, test fetching via UNC paths

It gets a bit silly to add the commands to the name of the test script,
so let's just rename it while we're testing more UNC stuff.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2017-07-13 14:28:42 +02:00
parent b1d4dc7733
commit 2f5034259c
2 changed files with 13 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
#include "../cache.h"
#include "win32/lazyload.h"
#include "win32/exit-process.h"
#include "../config.h"
#define HCAST(type, handle) ((type)(intptr_t)handle)

View File

@@ -49,11 +49,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 &&