Case sensitivity on Windows for absolute paths.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ricky Clarkson
Date: Friday, April 23, 2010 - 7:12 am

Hi,

I noticed that if I have a git repository at C:\foo, and there is a
file in there named bar, git add bar works fine, git add C:\foo/bar
works fine but git add c:\foo/bar does not.  git reports that the file
'is outside repository'.  Looking at setup.c it seems that string
comparisons are being used to determine whether a file is within the
repository.

For my purposes I can probably make a Windows build that does it while
ignoring the case, but is there a more proper way that git should do
it?  I'm not familiar enough with the POSIX file routines to know.

A separate tool, maven, is what specifies it as lowercase, otherwise I
would obviously just write C: instead of c: myself.  I think I know
how to fix that so it uses relative paths, and will look into that,
but it would be good to have git do the right thing too.

Thanks,
Ricky.

--
Ricky Clarkson
Java and Scala Programmer, AD Holdings
+44 1928 706373
Skype: ricky_clarkson
Google Talk: ricky.clarkson@gmail.com
Google Wave: ricky.clarkson@googlewave.com
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Case sensitivity on Windows for absolute paths., Ricky Clarkson, (Fri Apr 23, 7:12 am)
Re: Case sensitivity on Windows for absolute paths., Johannes Sixt, (Fri Apr 23, 12:46 pm)
Re: Case sensitivity on Windows for absolute paths., Ricky Clarkson, (Sun Apr 25, 12:33 am)
Re: Case sensitivity on Windows for absolute paths., Johannes Sixt, (Sun Apr 25, 11:08 am)
Re: Case sensitivity on Windows for absolute paths., Ricky Clarkson, (Sun Apr 25, 11:47 am)