未验证 提交 87feee89 编辑于 作者: Scott Johnson's avatar Scott Johnson
浏览文件

Use `git rev-parse` to find .git dir

Otherwise, this code breaks if riscv-gnu-toolchain is itself a
submodule of another project. In that case the git config for this
tree will be $(srcdir)/../.git/modules/riscv-gnu-toolchain/config.
上级 4e711512
......@@ -245,8 +245,8 @@ endif
$(srcdir)/%/.git:
cd $(srcdir) && \
flock $(srcdir)/.git/config git submodule init $(dir $@) && \
flock $(srcdir)/.git/config git submodule update $(dir $@)
flock `git rev-parse --git-dir`/config git submodule init $(dir $@) && \
flock `git rev-parse --git-dir`/config git submodule update $(dir $@)
#
# GLIBC
......
Supports Markdown
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册