Errors when commiting

skifreak
skifreak
Git failed with a fatal error. error: 'Tools/DRGBackfill/DRGBackfillCode/Program.cs' appears as both a file and as a directory error: Tools/DRGBackfill/DRGBackfillCode/Program.cs: cannot add to the index - missing --add option? fatal: Unable to process path Tools/DRGBackfill/DRGBackfillCode/Program.cs I am unable to commit my changes. We are using GIT.

Last updated

DougR
DougR
If you are running on a case-insensitive file system then perhaps Git has a record of one as a file (or directory) and the one in your working area is a directory (or file)? If so, then you need to know not to do that! Perhaps use "git mv" but you can't have 2 different directory entry objects that are identical on a case-insensitive file system (e.g. Windows). Don't do that. Or you changed one to the other and didn't use "git mv" to do the work of moving the old one out of the way? If so then revert and use "git mv". Let's focus on the 1st error and, fixing that, I expect the 2nd to go away. Also, you didn't say which git command actually failed???
skifreak
skifreak
[QUOTE=DougR;n2595]If you are running on a case-insensitive file system then perhaps Git has a record of one as a file (or directory) and the one in your working area is a directory (or file)? If so, then you need to know not to do that! Perhaps use "git mv" but you can't have 2 different directory entry objects that are identical on a case-insensitive file system (e.g. Windows). Don't do that. Or you changed one to the other and didn't use "git mv" to do the work of moving the old one out of the way? If so then revert and use "git mv". Let's focus on the 1st error and, fixing that, I expect the 2nd to go away. Also, you didn't say which git command actually failed???[/QUOTE] This is locally on my pc trying to check in We are using Git in VS not in Windows.[ATTACH=JSON]{"alt":"Click image for larger version Name:\tCapture.PNG Views:\t0 Size:\t118.3 KB ID:\t2597","data-align":"none","data-attachmentid":"2597","data-size":"full","title":"Capture.PNG"}[/ATTACH]
DougR
DougR
VS is Visual Studio, right? And the OPERATING SYSTEM is Windows, right? Then the local file system is case insensitive.
skifreak
skifreak
[QUOTE=DougR;n2598]VS is Visual Studio, right? And the OPERATING SYSTEM is Windows, right? Then the local file system is case insensitive.[/QUOTE] yes windows
skifreak
skifreak
My co-worker had me do it via the operating system and finally worked! Had to push manually and commit changes.
DougR
DougR
Probably a bug in Team Explorer/VS. Might want to file a report. Cheers.

1-7 of 7

Reply to this discussion

You cannot edit posts or make replies: You should be logged in before you can post.

Post a reply
519 views