Here's the solution:

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:
>> 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 
For more options, visit

Reply via email to