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

Not a git repository: '.'

From
greened@obbligato.org <greened@obbligato.org>
Date
Mar 24, 2012, 17:26 UTC
Message-ID
<87r4wh6hce.fsf@smith.obbligato.org>

I have a post-receive hook set up that does the following when something is pushed to a repository.

- Change directory to another non-bare repository
- Do 'git status'
I get this error from the original git push:
remote: fatal: Not a git repository: '.'

Debug output tells me I am in the correct directory when attempting the status check. This directory is a full git workarea (i.e. not a bare repository).

Any idea what git is complaining about? I can log on to the server and do 'git status' in the target directory and everything is fine.

                            -Dave
Next: Johannes Sixt
Message 1 of 3 in “Not a git repository: '.'”
  1. greened@obbligato.orgMar 24, 2012
  2. Johannes SixtMar 24, 2012
  3. greened@obbligato.orgMar 25, 2012

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.