码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2014-11-05 21:21:16      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:os   on   as   tt   c   ip   rom   server   oo   

Here is the script that ultimately worked. I think the bit I was originally missing that prevented it from working remotely was the unset GIT_DIR

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

exec git-update-server-info

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

标签:os   on   as   tt   c   ip   rom   server   oo   

原文地址:http://www.cnblogs.com/ytjjyy/p/4077134.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!