Skip to content

mingw: fix git clone \\server\share

Johannes Schindelin via GitGitGadget git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mingw (t5580): document bug when cloning from backslashed UNC pathst/t5580-clone-push-unc.sh+5 -00 replies
2/2mingw: special-case arguments to `sh`compat/mingw.c t/t0061-run-command.sh t/t5580-clone-push-unc.sh+87 -20 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchKim Gybels
1/2
2/2Helped-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] mingw: fix git clone \\server\share

Due to quirks in the MSYS2 runtime intended to help interpret a command-line as if it had been pre-processed by a shell, the backslashes would be misinterpreted as if they were escape characters. This showed most prominently when trying to clone from a network share, as the path would start with two backslashes.

These patches have been carried in Git for Windows for more than one-and-a-half years (in a slightly different, less readable form), and it is time to bring them home.

Johannes Schindelin (2):
mingw (t5580): document bug when cloning from backslashed UNC paths
mingw: special-case arguments to sh

 compat/mingw.c            | 77 ++++++++++++++++++++++++++++++++++++++-
 t/t0061-run-command.sh    | 10 +++++
 t/t5580-clone-push-unc.sh |  5 +++
 3 files changed, 91 insertions(+), 1 deletion(-)

base-commit: 77556354bb7ac50450e3b28999e3576969869068
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-94%2Fdscho%2Func-path-w-backslashes-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-94/dscho/unc-path-w-backslashes-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/94

Signature · 1 line
gitgitgadget