Skip to content

Commit 2710ed0

Browse files
committed
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 <[email protected]>
1 parent dde1b9c commit 2710ed0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

compat/mingw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "../cache.h"
99
#include "win32/lazyload.h"
1010
#include "win32/exit-process.h"
11+
#include "../config.h"
1112

1213
#define HCAST(type, handle) ((type)(intptr_t)handle)
1314

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)