klo*_*lor 8 git git-submodules git-post-receive
我有一个带有子模块的 git repo。
我会在接收后挂钩文件中使用:
git --git-dir="$GIT_DIR" --work-tree="$GIT_WORKDIR1" submodule update --init --recursive
Run Code Online (Sandbox Code Playgroud)
但我收到以下错误:
remote: fatal: /usr/libexec/git-core/git-submodule cannot be used without a working tree.
Run Code Online (Sandbox Code Playgroud)
我没有得到这个问题的解决方案。
我该怎么做才能让它发挥作用?
| 归档时间: |
|
| 查看次数: |
7384 次 |
| 最近记录: |