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

git mv oddities (minor bugs)

From
PBPatrick Boettcher <pboettcher@kernellabs.com>
Date
Jan 15, 2010, 16:49 UTC
Message-ID
<alpine.LRH.2.00.1001151728070.9232@pub3.ifh.de>
Hi all,

I'm currently using a lot of git mv to clean up some code. This includes renaming of files and moving them to new pathes inside the clone.

Everything's working very fine except two very small things I've encountered:

1) git mv from/file to/subdir/ - subdir does not exists

Instead of git telling me that 'subdir' does not exist it is executing the mv and 'file' is now called 'to/subdir' .

I'm almost sure this is a bug: the trailing / seems to be ignored.
2) git mv from/file to/subdir/new_name - subdir does not exists

Git is telling me the following: fatal: renaming 'from/file' failed: No such file or directory

This is a little bit misleading as it is 'to/subdir' which is "No such file or directory" .

I'm not sure what to do with this one - changing the error message a little bit might a good idea.

I'm using:

$ git --version git version 1.6.4.4

I was looking for a bug tracker at git-scm.org - didn't find any. So I'm not sure where to log my findings. How should I continue?

--

Patrick Boettcher - Kernel Labs http://www.kernellabs.com/

Message 1 of 1 in “git mv oddities (minor bugs)”
  1. Patrick BoettcherJan 15, 2010

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.