Re: [BUG] git mv file directory/ creates the file directory

2013-12-02 Thread Matthieu Moy
Duy Nguyen writes: > This may be a start. Does not seem to break anything.. I did not thoroughly review/test, but it does fix my case. Below is the same patch with one test case. No time to do more right now. Thanks, >From 99985341ed1312cf6a7b63e14be7da0d51c701b4 Mon Sep 17 00:00:00 2001 From:

Re: [BUG] git mv file directory/ creates the file directory

2013-12-02 Thread Duy Nguyen
On Mon, Dec 02, 2013 at 11:04:06AM +0100, Matthieu Moy wrote: > Hi, > > When directory/ does not exist, I'd expect this to fail: > > git mv existing-file directory/ > > (note the trailing slash, to make it clear that directory/ is a > directory). Unix's mv does fail: > > $ mv existing-file

[BUG] git mv file directory/ creates the file directory

2013-12-02 Thread Matthieu Moy
Hi, When directory/ does not exist, I'd expect this to fail: git mv existing-file directory/ (note the trailing slash, to make it clear that directory/ is a directory). Unix's mv does fail: $ mv existing-file directory/ mv: cannot move `existing-file' to `directory/': Not a directory Ins