repo sync x509: certificate is valid for,外部过滤器失败,smudge过滤器lfs失败,cannot initialize work tree
目录
1.报错内容
2.打印错误log
3.error log解析
4.error解决
正文
1. 报错内容
现象: 第一次repo sync时,repo sync中途中断,未能将所有代码都down到本地。
停在error:cannot initialize work tree。
或者停在其他报错位置,error:外部过滤器失败,smudge过滤器失败,x509等等。
2.打印错误log
终端中使用命令:repo --trace sync,定位repo sync出错的具体git文件。
repo sync是读取多个gitconfig文件中的内容,以从远程down代码。
我打印出的log如下:
: export GIT_DIR=/home/username111/projFloder/projectName123/.repo/projects/出错的文件夹.git
: git rev-parse --verify refs/remotes/origin_binary

博客详细记录了在使用`repo sync`时遇到的错误,包括`x509: certificate is valid for`、外部过滤器失败和`smudge filter lfs`失败等问题。作者解析了错误日志,指出问题根源在于主机文件(hosts)无法正确转换远程服务器地址,导致工作树初始化失败。解决方案是更新主机文件,将远程服务器的IP与其域名对应,以便成功同步代码。
951

被折叠的 条评论
为什么被折叠?



