getting “fatal: not a git repository: '.'” when using post-update hook to execute 'git pull' on another repo
2024-10-15 14:46:26
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
最新文章
- linux下c程序的链接、装载和库(3)
- PHP面向对象05_接口与多态
- 创建Android项目时出错——No resource found that matches the given name 'Theme.AppCompat.Light'
- ORGANIZATION
- graph_tool源码及其注释
- Owin管道与asp.net管道模型
- NDK环境配置
- windows 下安装elasticsearch
- 关于php读mysql数据库时出现乱码的解决方法
- 获取ubuntu 的root密码,告别sudo
- storm 1.0版本滑动窗口的实现及原理
- jQuery手风琴制作
- Django学习笔记(9)—— 开发用户注册与登录系统
- rem 自适应适配方法
- Spring Cloud Stream消费失败后的处理策略(二):自定义错误处理逻辑
- Mybait缓存机制
- synchronized和lock以及synchronized和volatile的区别
- request.getSession(true)和request.getSession(false)的区别
- 第六次Scrum冲刺
- 编程开发之--Oracle数据库--存储过程在out参数中使用光标(3)