{"thread":{"id":"22234","subject":"git mv oddities (minor bugs)","startedAt":"2010-01-15T16:49:18Z","lastAt":"2010-01-15T16:49:18Z","messageCount":1,"participants":["Patrick Boettcher"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"131733","messageId":"alpine.LRH.2.00.1001151728070.9232@pub3.ifh.de","threadId":"22234","inReplyTo":null,"subject":"git mv oddities (minor bugs)","fromName":"Patrick Boettcher","fromEmail":"pboettcher@kernellabs.com","sentAt":"2010-01-15T16:49:18Z","receivedAt":"2010-01-15T16:49:18Z","isPatch":false,"sender":{"key":"pboettcher@kernellabs.com","avatar":null},"body":"Hi all,\n\nI'm currently using a lot of git mv to clean up some code. This includes \nrenaming of files and moving them to new pathes inside the clone.\n\nEverything's working very fine except two very small things I've \nencountered:\n\n1) git mv from/file to/subdir/ - subdir does not exists\n\nInstead of git telling me that 'subdir' does not exist it is executing the \nmv and 'file' is now called 'to/subdir' .\n\nI'm almost sure this is a bug: the trailing / seems to be ignored.\n\n2) git mv from/file to/subdir/new_name - subdir does not exists\n\nGit is telling me the following:\nfatal: renaming 'from/file' failed: No such file or directory\n\nThis is a little bit misleading as it is 'to/subdir' which is \"No such \nfile or directory\" .\n\nI'm not sure what to do with this one - changing the error message a \nlittle bit might a good idea.\n\nI'm using:\n\n$ git --version\ngit version 1.6.4.4\n\nI was looking for a bug tracker at git-scm.org - didn't find any. So I'm \nnot sure where to log my findings. How should I continue?\n\n--\n\nPatrick Boettcher - Kernel Labs\nhttp://www.kernellabs.com/\n"}]}