git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Jan 17, 2019, 20:14 UTC
Message-ID
<pull.94.git.gitgitgadget@gmail.com>

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
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 3 in “mingw: fix git clone \\server\share”
  1. 0/2 mingw: fix git clone \\server\shareJohannes Schindelin via GitGitGadget, Jan 17, 2019
  2. 1/2 mingw (t5580): document bug when cloning from backslashed UNC pathsJohannes Schindelin via GitGitGadget, Jan 17, 2019
  3. 2/2 mingw: special-case arguments to `sh`Johannes Schindelin via GitGitGadget, Jan 17, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.