list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
* Misleading error message with invalid filename on Windows
       [not found] <>
@ 2019-03-14 22:31 ` Josh Mandel
  0 siblings, 0 replies; only message in thread
From: Josh Mandel @ 2019-03-14 22:31 UTC (permalink / raw)
  To: git; +Cc: Grahame Grieve

Running git 2.21.0 on Windows with certain invalid file names like
"c:\root.txt" (see as a
test case), I get an expected "invalid path" error when I clone the

But if I actually have a file at this path (i.e., outside of the git
working tree, at root of my file system) then I instead receive a
different error message:

$ touch /c/root.txt
$ git clone

> error: Untracked working tree file 'c:\root.txt' would be overwritten by merge.

This error message is misleading, in that (if I understand correctly)
there's actually no danger of my local file (which is *not* in the
working tree at all) being overwritten.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-14 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <>
2019-03-14 22:31 ` Misleading error message with invalid filename on Windows Josh Mandel

Code repositories for project(s) associated with this inbox:

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).