You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue with the git command used to clone the repository. I believe the issue was introduced in git 2.9, although I haven't been able to verify. After doing some research, it looks like git 2.9 made a change so that command line flags are now sent to the submodule commands as well, where pre-2.9 releases ignored those flags for submodules.
That seems like a great change on the surface. But unfortunately for us, it means that using --depth=1 and --recursive in the same command will almost always result in a failed clone. This is because the submodule is also initially checked out using --depth=1 and so when it then tries to check out the commit specified by the .gitmodules file, it fails because it doesn't see that SHA in the git history. The only way it will succeed is if the specified commit also happens to be the HEAD of master.
This issue can be fixed by removing the --recursive flag from the initial git command, and then running git submodules --init --recursive inside the repo to pull down the submodules.
The text was updated successfully, but these errors were encountered:
Report
What did you do?
pod Argo -> 3.0.1
pod install
What did you expect to happen?
Argo is installed correctly
What happened instead?
CocoaPods fails to install Argo because git can't find the commit required for
Curry
(an internal testing dependency declared as a git submodule)CocoaPods Environment
Stack
Installation Source
Plugins
Notes
This is an issue with the git command used to clone the repository. I believe the issue was introduced in git 2.9, although I haven't been able to verify. After doing some research, it looks like git 2.9 made a change so that command line flags are now sent to the submodule commands as well, where pre-2.9 releases ignored those flags for submodules.
That seems like a great change on the surface. But unfortunately for us, it means that using
--depth=1
and--recursive
in the same command will almost always result in a failed clone. This is because the submodule is also initially checked out using--depth=1
and so when it then tries to check out the commit specified by the.gitmodules
file, it fails because it doesn't see that SHA in the git history. The only way it will succeed is if the specified commit also happens to be the HEAD of master.This issue can be fixed by removing the
--recursive
flag from the initialgit
command, and then runninggit submodules --init --recursive
inside the repo to pull down the submodules.The text was updated successfully, but these errors were encountered: