Py学习  »  Git

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

KLanger • 5 年前 • 1940 次点击  

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
 
1940 次点击  
文章 [ 1 ]  |  最新文章 5 年前