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

Re: Files that cannot be added to the index

From
Shaun Ruffell <sruffell@digium.com>
Date
Aug 26, 2011, 21:12 UTC
Message-ID
<20110826211233.GB3093@digium.com>
In-Reply-To
<20110826205919.GB8107@sooty-2.local>
On Fri, Aug 26, 2011 at 10:59:19PM +0200, seanh wrote:
> I'm using git version 1.7.4.4 on OSX Lion, from macports. (I was
> having the problem on Snow Leopard too.)

Not sure if this is your problem exactly but awhile back I ran into something similar to what you describe and tracked it down to the fact that my filesystem was case insensitive. i.e.

  $ git clone git://github.com/sruffell/dahdi-linux
  Cloning into dahdi-linux...
  done.
  $ cd dahdi-linux/
  $ ls
  LICENSE      Makefile     UPGRADE.txt  drivers
  LICENSE.LGPL README       build_tools  include
  $ git ls-files -m
  $ rm Makefile 
  $ touch makefile
  $ git add makefile 
  $ git ls-files -m
  Makefile
  $ git commit
  # On branch master
  # Changes not staged for commit:
  #   (use "git add <file>..." to update what will be committed)
  #   (use "git checkout -- <file>..." to discard changes in working directory)
  #
  #	modified:   Makefile
  #
  no changes added to commit (use "git add" and/or "git commit -a")
  $ git add makefile 
  $ git commit
  # On branch master
  # Changes not staged for commit:
  #   (use "git add <file>..." to update what will be committed)
  #   (use "git checkout -- <file>..." to discard changes in working directory)
  #
  #	modified:   Makefile
  #
  no changes added to commit (use "git add" and/or "git commit -a")
Previous: seanhNext: Jeff King
Message 4 of 10 in “Files that cannot be added to the index”
  1. seanhAug 26, 2011
  2. Michael J GruberAug 26, 2011
  3. seanhAug 26, 2011
  4. Shaun RuffellAug 26, 2011
  5. Jeff KingAug 27, 2011
  6. seanhAug 27, 2011
  7. Shaun RuffellAug 27, 2011
  8. Shaun RuffellAug 27, 2011
  9. seanhAug 27, 2011
  10. seanhAug 27, 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.