Renaming file with differences only in casing doesn't work
By blamey.... on July 21, 2011 09:49 (imported from Google Code)
What steps will reproduce the problem?
- Commit file 'foo.txt'
- Attempt to rename 'foo.txt' to 'Foo.txt' using TortoiseGit Context Menu
What is the expected output? What do you see instead?
I would expect to rename my file, and then have a pending change.
Instead a get an error message like this:
"fatal: destination exists, source=foo.xml, destination=Foo.xml"
What version of the product are you using? On what operating system?
Windows 7 Home Premium. Build 7601: SP 1.
git version 22.214.171.124.mysysgit.0
Please provide any additional information below.
Can workaround by making two changes,
e.g. 'foo.txt' -> 'Foo.txt2' -> 'Foo.txt' -> commit.
I encountered the problem because Java checks that the filenames have the right casing.
Thanks & Kind Regards