Carthage/Carthage
Better error for misconfigured git submodule
Aberta
#2.572 aberto em 10 de set. de 2018
enhancementhelp wanted
Métricas do repositório
- Stars
- (15.179 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
Steps to reproduce
mkdir tmpcd tmpgit initecho 'github "antitypical/Result"'>Cartfilecarthage update --use-submodules --no-buildgit add .git commit -m 'Initial'git rm Carthage/Checkouts/Resultgit reset HEAD .gitmodulesgit checkout -- .gitmodulesgit commit -m 'Bork it'carthage bootstrap --use-submodules --no-build
Expected A nice error that explains what you do and how to fix it or possibly even fix it automatically.
Fix:
git submodule add -f {url to submodule} {path to submodule}git commit
Actual This unfriendly error. If you don't know to avoid doing the above, you definitely won't understand the error.
Parse error: expected submodule commit SHA in output of task (ls-tree -z HEAD Carthage/Checkouts/Result) but encountered: