{"thread":{"id":"30050","subject":"Not a git repository: '.'","startedAt":"2012-03-24T17:26:09Z","lastAt":"2012-03-25T21:59:55Z","messageCount":3,"participants":["greened@obbligato.org","Johannes Sixt"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"187643","messageId":"87r4wh6hce.fsf@smith.obbligato.org","threadId":"30050","inReplyTo":null,"subject":"Not a git repository: '.'","fromName":"","fromEmail":"greened@obbligato.org","sentAt":"2012-03-24T17:26:09Z","receivedAt":"2012-03-24T17:26:09Z","isPatch":false,"sender":{"key":"greened@obbligato.org","avatar":"https://avatars.githubusercontent.com/u/5291869?v=4"},"body":"I have a post-receive hook set up that does the following when something\nis pushed to a repository.\n\n- Change directory to another non-bare repository\n- Do 'git status'\n\nI get this error from the original git push:\n\nremote: fatal: Not a git repository: '.'\n\nDebug output tells me I am in the correct directory when attempting the\nstatus check.  This directory is a full git workarea (i.e. not a bare\nrepository).\n\nAny idea what git is complaining about?  I can log on to the server and\ndo 'git status' in the target directory and everything is fine.\n\n                            -Dave\n"},{"id":"187644","messageId":"4F6E0F07.6030400@kdbg.org","threadId":"30050","inReplyTo":"87r4wh6hce.fsf@smith.obbligato.org","subject":"Re: Not a git repository: '.'","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2012-03-24T18:14:31Z","receivedAt":"2012-03-24T18:14:31Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 24.03.2012 18:26, schrieb greened@obbligato.org:\n> I have a post-receive hook set up that does the following when something\n> is pushed to a repository.\n> \n> - Change directory to another non-bare repository\n> - Do 'git status'\n> \n> I get this error from the original git push:\n> \n> remote: fatal: Not a git repository: '.'\n> \n> Debug output tells me I am in the correct directory when attempting the\n> status check.  This directory is a full git workarea (i.e. not a bare\n> repository).\n> \n> Any idea what git is complaining about?  I can log on to the server and\n> do 'git status' in the target directory and everything is fine.\n\nMost likely, GIT_DIR=. is set when the hook is entered. Does unset\nGIT_DIR help?\n\n-- Hannes\n"},{"id":"187693","messageId":"877gy8e3z8.fsf@smith.obbligato.org","threadId":"30050","inReplyTo":"4F6E0F07.6030400@kdbg.org","subject":"Re: Not a git repository: '.'","fromName":"","fromEmail":"greened@obbligato.org","sentAt":"2012-03-25T21:59:55Z","receivedAt":"2012-03-25T21:59:55Z","isPatch":false,"sender":{"key":"greened@obbligato.org","avatar":"https://avatars.githubusercontent.com/u/5291869?v=4"},"body":"Johannes Sixt <j6t@kdbg.org> writes:\n\n> Most likely, GIT_DIR=. is set when the hook is entered. Does unset\n> GIT_DIR help?\n\nThat was indeed the problem.  Thank you!\n\n                        -Dave\n"}]}