社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Git

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

KLanger • 4 年前 • 1126 次点击  

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
 
1126 次点击  
文章 [ 1 ]  |  最新文章 4 年前
VonC
Reply   •   1 楼
VonC    4 年前

作为 show here

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

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

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