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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Instead, "git mv" seems to do the equivalent of

  git mv existing-file directory # without trailing slash

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]