[英]git reset --hard hangs on CircleCI/Ubuntu 14 with git-lfs < 1.5.6
I'm deploying to CircleCI and but my code is timing out. 我正在部署到CircleCI,但我的代码已超时。
The command in particular that CircleCI is calling that's causing the time-out is during the checkout
stage: 特别是CircleCI正在调用导致超时的命令是在
checkout
阶段:
git reset --hard SHA
git reset - 硬SHA
Where SHA
is the hash of the build, but upon ssh'ing in I noted that HEAD
and others that I tried also run forever. 其中
SHA
是构建的哈希,但在ssh'ing中我注意到HEAD
和我尝试的其他人也会永远运行。
At that point the code has been checked out with: 此时代码已经签出:
git clone --quiet git@github.com:Organization/Repo.git .
git clone --quiet git@github.com:Organization / Repo.git。 --config core.compression=9 --depth 10 --no-single-branch
--config core.compression = 9 --depth 10 --no-single-branch
Why would git reset --hard
run (seemingly) forever on the CircleCI environment, and what fixes are reasonably available? 为什么
git reset --hard
在CircleCI环境中永远运行(看似),以及哪些修复程序合理可用?
More details (we've got some git-lfs files here, too): 更多细节(我们这里也有一些git-lfs文件):
EDIT This appears related to: 编辑这似乎与:
I would also note that adding GIT_LFS_SKIP_SMUDGE=1
(in the CircleCI Project config) has not had any useful effect. 我还要注意,添加
GIT_LFS_SKIP_SMUDGE=1
(在CircleCI项目配置中)没有任何有用的效果。
It does help to go back to Ubuntu 12, but obviously that's less than ideal. 它确实有助于回到Ubuntu 12,但显然这不太理想。
EDIT 编辑
Here's a recent bug report I filed: https://discuss.circleci.com/t/cannot-pull-with-git-lfs/14346 这是我最近提交的错误报告: https : //discuss.circleci.com/t/cannot-pull-with-git-lfs/14346
(Just to ensure visibility, because my other reports were buried in comments) (只是为了确保可见性,因为我的其他报告都被隐藏在评论中)
The issue was a typo, namely that CircleCI was running version 1.0, but should have been using 2.0. 这个问题是一个错字,即CircleCI正在运行1.0版,但应该使用2.0。
In particular, I had created a .circleci/config.yaml
, with the appropriate config. 特别是,我用适当的配置创建了一个
.circleci/config.yaml
。
... however, it should've been called .circleci/config.yml
. ...但是,它应该被称为
.circleci/config.yml
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.