{"thread":{"id":"31258","subject":"Can't track untracked file","startedAt":"2012-08-15T23:58:41Z","lastAt":"2012-08-16T02:04:36Z","messageCount":2,"participants":["Marco S Hyman","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"197073","messageId":"A32BFCAF-114F-4A65-B802-8DD2A795B96E@snafu.org","threadId":"31258","inReplyTo":null,"subject":"Can't track untracked file","fromName":"Marco S Hyman","fromEmail":"marc@snafu.org","sentAt":"2012-08-15T23:58:41Z","receivedAt":"2012-08-15T23:58:41Z","isPatch":false,"sender":{"key":"marc@snafu.org","avatar":null},"body":"Don't know if this is a git bug or something I'm doing wrong.\nSuggestions appreciated.\n\nOn a machine named server:\n\n  server[saturday]$ uname -a\n  OpenBSD server.snafu.org 5.1 SERVER#342 amd64\n  server[saturday]$ git --version\n  git version 1.7.6\n  server[saturday]$ git status\n  # On branch master\n  nothing to commit (working directory clean)\n\nYeah, I haven't updated that machine in a while.  Ignore that\nas everything is fine on that machine.  The issue is on another\nmachine:\n\n  $ uname -a\n  Darwin dumbcat.snafu.org 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64\n  $ git --version\n  git version 1.7.11.3\n  $ git clone server:~www/www/saturday\n  Cloning into 'saturday'...\n  remote: Counting objects: 11401, done.\n  remote: Compressing objects: 100% (6868/6868), done.\n  remote: Total 11401 (delta 5620), reused 9456 (delta 4523)\n  Receiving objects: 100% (11401/11401), 658.01 MiB | 10.79 MiB/s, done.\n  Resolving deltas: 100% (5620/5620), done.\n  Checking out files: 100% (4454/4454), done.\n\nEverything should be fine, right.  Except...\n\n  $ cd saturday/\n  $ git status\n  # On branch master\n  # Untracked files:\n  #   (use \"git add <file>...\" to include in what will be committed)\n  #\n  #\t2010/\n  nothing added to commit but untracked files present (use \"git add\" to track)\n\nAnd there is NOTHING I can do to get that directory into git.\n\n  $ git add 2010\n  $ git commit -m 'will it work?'\n  # On branch master\n  # Untracked files:\n  #   (use \"git add <file>...\" to include in what will be committed)\n  #\n  #\t2010/\n  nothing added to commit but untracked files present (use \"git add\" to track)\n\nThe directory is not empty.  Everything was fine prior to the\nlast commit (into a different directory).  I'd originally done\nthe changes and commit on this machine.  When things went to hell\nI repeated the changes on the machine \"server\" and cloned it as\nan attempted work-around to the issue.\n\nWhat next?"},{"id":"197075","messageId":"7vr4r7383v.fsf@alter.siamese.dyndns.org","threadId":"31258","inReplyTo":"A32BFCAF-114F-4A65-B802-8DD2A795B96E@snafu.org","subject":"Re: Can't track untracked file","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-08-16T02:04:36Z","receivedAt":"2012-08-16T02:04:36Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marco S Hyman <marc@snafu.org> writes:\n\n> And there is NOTHING I can do to get that directory into git.\n>\n>   $ git add 2010\n>   $ git commit -m 'will it work?'\n>   # On branch master\n>   # Untracked files:\n>   #   (use \"git add <file>...\" to include in what will be committed)\n>   #\n>   #\t2010/\n>   nothing added to commit but untracked files present (use \"git add\" to track)\n>\n> The directory is not empty.\n\nPerhaps \"2010\" or everything in it is ignored in .gitignore in\nhigher directories?\n"}]}