On 10/5/07, Frank Lichtenheld <frank@xxxxxxxxxxxxxx> wrote: > On Fri, Oct 05, 2007 at 12:27:22PM +0100, Geoffrey Ferrari wrote: > > -- > > fatal: Not a git repository: '.' > > Failed to find a valid git directory. > > -- > > > > Can anyone explain why this happens? And how can I make the script > > work properly? > > I'm no hook expert, but it may have something to do with some > environment variables that are set in hooks, you might need to change > variables like GIT_DIR. Ack. The hooks seem to assume repositories pushed into are bare, so the GIT_DIR isn't set to a .git subdirectory (even if it exists). Mike - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html