Py学习  »  Git

使用带有git挂钩的脚本时找不到文件或目录

KLanger • 5 年前 • 1943 次点击  

http://www.multitech.net/developer/software/mlinux/mlinux-building-images/building-a-custom-linux-image/

我跟着他们,直到现在一切都正常。

当我试图运行安装文件时(包括以下代码:

set -e
BUILDCONF=build/conf/local.conf

if [ "$1" != "--update" ]; then
  echo ""
  echo "Setting up git hooks..."
ln -s ../../scripts/git-hooks/post-merge .git/hooks/post-merge || true
ln -s ../../scripts/git-hooks/post-checkout .git/hooks/post-checkout || 
true
  ln -s ../../scripts/git-hooks/pre-commit .git/hooks/pre-commit || true
  ln -s ../../scripts/git-hooks/pre-push .git/hooks/pre-push || true
fi

echo ""
echo "Updating git submodules..."
git submodule update --init

)

无法创建Shortcut.gt/hooks/(钩子的名称):找不到文件或目录(从德语翻译)。 另外:git:submodule不是命令。

提前谢谢你!

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/53422
 
1943 次点击  
文章 [ 1 ]  |  最新文章 5 年前
VonC
Reply   •   1 楼
VonC    6 年前

作为 show here

https://github.com/edison-fw/meta-intel-edison

问题的出现是因为爱迪生板上的git版本缺少一些部件。在这种情况下,git子模块二进制文件在 /usr/libexec/git-core

因此,首先检查您的Git安装是否在您的构建环境中完成。