Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367248 - Case Sensitive Directories Linux vs. Windows
Summary: Case Sensitive Directories Linux vs. Windows
Status: CLOSED INVALID
Alias: None
Product: JGit
Classification: Technology
Component: JGit (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-20 15:37 EST by Mahdi Yusuf CLA
Modified: 2012-06-19 20:05 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mahdi Yusuf CLA 2011-12-20 15:37:56 EST
Build Identifier: M20110909-1335

So for example in Linux names are case sensitive but they are not on windows, so the issue we are seeing here is that when a pair of directories on Linux exist but have the same name but in different cases and is checked out into Windows, collapses the directory structures on top of one another and depending on what gets pull down first it overwrites the directory with the latter one. 

From what we can gather than can be attributed to Windows case insensitivity when naming files and folders. 

Reproducible: Always

Steps to Reproduce:
1.Create a repository on Linux with two directories with same name different case
2.Push it to repository.
3.Checkout repository on the windows machine.
Comment 1 Mahdi Yusuf CLA 2011-12-20 15:53:08 EST
The first directory is created, and files placed into it. The the original files are deleted and the files from the second (differently cased) directory are placed inside without changing the directory case, causing git to think that a series of new files have been added to the original directory, and the original files being deleted.
Comment 2 Robin Rosenberg CLA 2012-06-19 20:05:26 EDT
What do you want us to do? We cannot change Windows. 

You need to fix you repository on Linux before bringing it onto Windows.

Most definitely not a critical error in EGit. It is in your repository.