Here's the solution:

http://stackoverflow.com/questions/4043609/getting-fatal-not-a-git-repository-when-using-post-update-hook-to-execut

#!/bin/sh
cd /path/to/working-copy/ || exit
unset GIT_DIR
git pull repo branch


On Monday, April 14, 2014 5:17:45 PM UTC-5, Matt Alexander wrote:
>
> I'm having this same problem. Can't figure it out.
>
> On Tuesday, April 1, 2014 10:20:38 AM UTC-5, Philip wrote:
>>
>> I tried to update a hook today and ran into some trouble:
>> https://gist.github.com/pamolloy/9915782
>>
>> I can manually execute each command in the hook without a problem. But 
>> when I push to the repo the 'git submodule' commands  return remote: fatal: 
>> Not a git repository: '.'
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to