{"thread":{"id":"28041","subject":"A little help with error?","startedAt":"2011-08-07T21:16:57Z","lastAt":"2011-08-10T12:21:21Z","messageCount":2,"participants":["Rusty Dog Ink","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"173105","messageId":"752985D1B23046F994920F9018B53DF8@rustydogink.com","threadId":"28041","inReplyTo":null,"subject":"A little help with error?","fromName":"Rusty Dog Ink","fromEmail":"chris@rustydogink.com","sentAt":"2011-08-07T21:16:57Z","receivedAt":"2011-08-07T21:16:57Z","isPatch":false,"sender":{"key":"chris@rustydogink.com","avatar":null},"body":"This command. \ngit add --force /Users/chris/Sites/mattSchubert/public/css/browserfix.css => \"Crappy Error\"\nYields this error.\nfatal: '/Users/chris/Sites/mattSchubert/public/css/browserfix.css' is outside repository \nThis command does gives the same error. \ngit add --force /public/css/browserfix.css => \"Same error\"\nBut this command, works. Why?\ngit add --force public/css/browserfix.css => \"Works yeah\"\nThis is an issue since Gitbox my graphical client uses full paths for it's commands. This began happening after I use the \"bundle install\" command after adding 'dm-postgres-adapter' to my gem file. Ideas on fixing this?\n\n-- \nChris\nSent with Sparrow (http://www.sparrowmailapp.com)\n"},{"id":"173239","messageId":"20110810122121.GB17071@sigill.intra.peff.net","threadId":"28041","inReplyTo":"752985D1B23046F994920F9018B53DF8@rustydogink.com","subject":"Re: A little help with error?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2011-08-10T12:21:21Z","receivedAt":"2011-08-10T12:21:21Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Sun, Aug 07, 2011 at 02:16:57PM -0700, Rusty Dog Ink wrote:\n\n> git add --force /Users/chris/Sites/mattSchubert/public/css/browserfix.css => \"Crappy Error\"\n> Yields this error.\n> fatal: '/Users/chris/Sites/mattSchubert/public/css/browserfix.css' is outside repository \n\nWe can't say if this is reasonable or not without knowing more. Which\ndirectory are you in? Which git repository do you expect to be found?\nWhich repository does git actually find (try \"git rev-parse --git-dir\")?\nDo you have GIT_WORK_TREE set in the environment, or core.worktree set\nin your config?\n\n> This command does gives the same error. \n> git add --force /public/css/browserfix.css => \"Same error\"\n> But this command, works. Why?\n> git add --force public/css/browserfix.css => \"Works yeah\"\n\nThe top one seems nonsensical, unless your git repository is at one of:\n\n  /.git\n  /public/.git\n  /public/css/.git\n\nThe bottom one makes sense; you are looking at files in the current\ndirectory, which is going to be inside your repository (unless you are\nsetting some of worktree variables I mentioned above).\n\nAre you trying to do something clever with symlinks to /public? If so,\nshow us.\n\n-Peff\n"}]}