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

Re: [bug] Possible Windows 'git mv' bug

From
AGAaron Gray <aaronngray.lists@gmail.com>
Date
Jan 31, 2016, 15:38 UTC
Message-ID
<CANkmNDedU90cHon13HaFfE+Ok=5ZtcBOa7mEkZm-eHNMFJd5KA@mail.gmail.com>
In-Reply-To
<56AE1F40.8060509@kdbg.org>
On 31 January 2016 at 14:50, Johannes Sixt <j6t@kdbg.org> wrote:
Show 27 quoted lines
> Am 31.01.2016 um 15:03 schrieb Aaron Gray:
>>
>> Hi,
>>
>> I think I have found a possible difference in behaviour between
>> Windows git commandline distro and Linux git
>>
>> basically If I do a :-
>>
>>      git mv logger.h Logger.h
>>
>> I get the following :-
>>
>>      fatal: destination exists, source=lib/logger.h,
>> destination=lib/Logger.h
>>
>> It looks and smells like a bug to me !
>
>
> Not really. When you attempt to overwrite an existing file with 'git mv',
> you get this error message on both Windows and Linux.
>
> The difference is that logger.h and Logger.h are the same file on Windows,
> but they are not on Linux. Hence, when you attempt to overwrite Logger.h on
> Windows, you see the error because it exists already (as logger.h).
>
> As a work-around, you can use -f.
Thanks Hannes !
Still a bug though IMHO
Aaron
Previous: Aaron GrayNext: Torsten Bögershausen
Message 5 of 7 in “[bug] Possible Windows 'git mv' bug”
  1. Aaron GrayJan 31, 2016
  2. Johannes SixtJan 31, 2016
  3. Doug KellyJan 31, 2016
  4. Aaron GrayJan 31, 2016
  5. Aaron GrayJan 31, 2016
  6. Torsten BögershausenJan 31, 2016
  7. Johannes SchindelinFeb 1, 2016

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.