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

Cygwin, git and x: directory

From
Mikko Rapeli <mikko.rapeli@iki.fi>
Date
Jul 12, 2013, 12:42 UTC
Message-ID
<20130712124213.GL14578@lakka.kapsi.fi>
(please Cc: me in replies, not subscribed to the lists)
Hi Cygwin and git developers,
Does following scenario show signs of bugs in Cygwin and/or git?

# setup git repo $ cd /tmp $ mkdir foo && cd foo $ git init

# create x: directory $ mkdir x: $ ls x:

# create Windows X: drive, cygwin utils can work with both unix and dos style # path names $ mkdir c:/temp/bar $ subst x: c:/temp/bar $ touch x:/file.txt $ ls x:/ file.txt

# clean git tree from non-tracked files $ git clean -d -x -f Removing x:/

# observe results, git did rm -rf on the X drive instead of the local # directory named x: $ ls x: $ file x\: x:: directory $ ls x:/ ls: cannot access x:/: No such file or directory $ ls c:/temp/bar ls: cannot access c:/temp/bar: No such file or directory $ subst X:\: => C:\temp\bar

In real life CMake created C: file in a build tree -- which is also a bug but a separate one -- which resulted in obviously catastrophic results.

-Mikko
Next: Mark Levedahl
Message 1 of 2 in “Cygwin, git and x: directory”
  1. Mikko RapeliJul 12, 2013
  2. Mark LevedahlJul 12, 2013

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.