getting “fatal: not a git repository: '.'” when using post-update hook to execute 'git pull' on another repo

前端 未结 5 562
梦谈多话
梦谈多话 2020-11-30 20:17

I\'m new to git so I apologize (and please correct me) if I misuse terminology here, but I\'ll do my best.

I\'m trying to set up a bare git repo (hub) and a developm

5条回答
  •  半阙折子戏
    2020-11-30 20:35

    You probably have a permissions issue. I'm not sure how you have setup your bare git repo, but if it's running under the git user, make sure that git user is allowed to perform the git pull in your project directory.

    Optionally try this to find out what user you are when the hook is run:

    echo `whoami`
    

提交回复
热议问题