git mv oddities (minor bugs)

From: Patrick Boettcher <hidden>
Date: 2016-06-15 22:48:02

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help