首页 > 其他 > 详细

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

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!