d sharpe
d sharpe

Reputation: 189

How to fix case sensitivity in Windows Git repository

We are developing on exclusively Windows machines and host MSysGit on a Werver 2008 machine. We use Redmine (BitNami Redmine Stack) as our issue tracking/project management system.

While we have no problem at all with Git and the development machines, we DO have an issue with how the Repository displays in Redmine, due to what looks like case sensetivity issues.

The Redmine Repository is displaying "duplicate" (well not duplicate exactly) trees as below, presumably due to some files being commited with lower case paths (for some reason unknown to me)

+-Develop
|  |
|  +-Library .....
|  |
|  +-AutomatedTests .....
|
+-develop
   |
   +-library .....

While this isn't life threatening as clones, and checkouts to Windows don't have this issue, it is rather annoying for browsing code in Redmine.

Is there a (easy considering it's a very large repository) way to either a) make redmine case insensetive while displaying the tree. or b) fix the issue with the lower case paths (we standardise on Camel case)

Upvotes: 4

Views: 4106

Answers (2)

Adam Dymitruk
Adam Dymitruk

Reputation: 129724

Redmine will see those as different places. Even though you have ignore case on, always tab-complete when going into directories and specifying files. Use git filter-branch to fix the casing. This will change where all references point but it may be a good thing to do at this point.

Upvotes: 0

zoran119
zoran119

Reputation: 11307

Have you tried adding ignorecase = true in .git/config?

Upvotes: 3

Related Questions