【发布时间】:2010-10-12 13:33:33
【问题描述】:
我尝试使用 cron 作业更新 git svn repo (git svn rebase),但出现此错误。
usage: git-cat-file [-t|-s|-e|-p|<type>] <sha1>
error closing pipe: Broken pipe at /usr/local/libexec/git-core//git-svn line 4290
cat-file --batch: command returned error: 129
我在 cron 脚本中添加了 git 路径,似乎没有帮助。
export PATH=$PATH:/usr/local/libexec/git-core/
当我使用 bash 登录时,git svn rebase 工作正常。我还应该怎么做才能让它作为 cron 作业运行?
【问题讨论】: