git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: weird github capitalization problem

From
Andreas Stricker <astricker@futurelab.ch>
Date
Jan 7, 2011, 09:17 UTC
Message-ID
<4D26DA12.50002@futurelab.ch>
In-Reply-To
<1294146242606-5888573.post@n2.nabble.com>
Am 04.01.11 14:04, schrieb bolfo:
Show 5 quoted lines
> I first installed everything on my laptop, coded some stuff and then pushed
> to github. Apparently something went wrong because there was a new
> directory, while at first the directory was OurProjectsources, there now was
> a new directory called OurProjectSources. Weird since my local directory has
> the s not capitalized.
> I work on a windows PC while the original author works on a Mac, could this
> be the problem?

Yes, Mac OSX HFS+ filesystem ignores the case by default (you'll need to reformat to change this). So OurProjectSources and OurProjectsources both refers to the same directory on Mac OS X. On Linux there are two different directories

This frequently causes issues here too. An example:
me@mac:t $ git init r
Initialized empty Git repository in /private/tmp/t/r/.git/
me@mac:r (master) $ mkdir OurProjectsources
me@mac:r (master) $ touch OurProjectsources/a
me@mac:r (master) $ git add OurProjectsources/a
me@mac:r (master) $ git commit -m "initial import"
[master (root-commit) c2cb2f3] initial import
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 OurProjectsources/a
me@mac:r (master) $ mv OurProjectsources/ OurProjectSources
me@mac:r (master) $ touch OurProjectSources/b
me@mac:r (master) $ git add OurProjectSources/b
me@mac:r (master) $ git commit -m "added b"
[master 4de780c] added b
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 OurProjectSources/b
me@mac:r (master) $ git stat
# On branch master
nothing to commit (working directory clean)
me@mac:r (master) $ scp -r .git linux:t.git
me@mac:r (master) $ ssh linux

me@linux:~ $ git clone t.git/ Initialized empty Git repository in /home/me/t/.git/ me@linux:~ $ cd t me@linux:~/t $ ls OurProjectsources OurProjectSources me@linux:~/t $ find * OurProjectsources OurProjectsources/a OurProjectSources OurProjectSources/b

And there it is, our mess. The mac user accidentally created two different directories but didn't see them.

~/Andy
Previous: bolfoNext: Torsten Bögershausen
Message 2 of 4 in “weird github capitalization problem”
  1. bolfoJan 4, 2011
  2. Andreas StrickerJan 7, 2011
  3. Torsten BögershausenJan 14, 2011
  4. Torsten BögershausenJan 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.