【问题标题】:Unable to rebase git svn repo through cron job无法通过 cron 作业 rebase git svn repo
【发布时间】: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 作业运行?

【问题讨论】:

    标签: cron git-svn


    【解决方案1】:

    似乎它仍然是一个 PATH 问题。在我从 bash env 中复制了准确​​的 PATH 后,问题就解决了。

    export PATH=$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/libexec/git-core/
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-05
      • 1970-01-01
      • 2011-06-21
      • 1970-01-01
      • 2022-12-02
      相关资源
      最近更新 更多