This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224507 - With Git renaming a file with a capital letter it's marked as R/- but when you go to commit it marks as D/- and deletes it
Summary: With Git renaming a file with a capital letter it's marked as R/- but when yo...
Status: RESOLVED DUPLICATE of bug 217184
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.2
Hardware: Macintosh (x86) Mac OS X
: P1 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-04 19:45 UTC by gregsmith
Modified: 2013-01-04 19:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gregsmith 2013-01-04 19:45:16 UTC
As the title suggests I have renamed a file from users.php to Users.php.  When I commit it suddenly is marked as deleted and gets removed.  It's as if Git thinks the file is removed when it's renamed and then the new capitalised version is seen as the same as the previous file so it thinks this was also removed.  I don't know a huge amount about Git but I would imagine this isn't expected behaviour as it's potentially very destructive.

I thought I'd found a workaround here - http://playabl.com/blog/2012/03/netbeans-git-deleteremove/ - but this doesn't work for me.

I've tried committing without the file, then readding the file and committing again but it just deletes it again.
Comment 1 Ondrej Vrabec 2013-01-04 19:54:30 UTC
The main problem should be solved in bug #217184

*** This bug has been marked as a duplicate of bug 217184 ***