Wrongly claims child repos are not cloned locally
See original GitHub issueRan git clone git@bitbucket.org:<obfuscated>/dpo-meta-poc.git in the same directory (dpo/) as the child repos. That is the repos listed in .meta file:
*** the following repositories have been added to .meta but are not currently cloned locally:
*** { 'dpo-frontend': 'git@bitbucket.org:<obfuscated>/dpo-frontend.git',
'dpo-account-frontend': 'git@bitbucket.org:<obfuscated>/dpo-account-frontend.git',
'dpo-api-v2': 'git@bitbucket.org:<obfuscated>/dpo-api-v2.git',
'dpo-api': 'git@bitbucket.org:<obfuscated>/dpo-api.git',
'dpo-auth': 'git@bitbucket.org:<obfuscated>/dpo-auth.git',
'dpo-manager': 'git@bitbucket.org:<obfuscated>/dpo-manager.git',
'dpo-widget-api': 'git@bitbucket.org:<obfuscated>/dpo-widget-api.git',
'dpo-environment': 'git@bitbucket.org:<obfuscated>/dpo-environment.git' }
*** type 'meta git update' to correct.
That is, the meta-directory/repo is a sibling to the listed directories/repos.
This causes the error:
dpo-meta-poc:
* master
dpo-meta-poc ✓
dpo-frontend:
dpo-frontend: command 'git branch ' exited with error: Error: spawnSync /bin/sh ENOENT
...
Anyway I can fix this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
git - Can't clone remote repository - Visual Studio Feedback
Almost all of the repo is cloned and at the very end I get the CloneCommand.ExecuteClone error. However if got to. "Manage Connections";...
Read more >Troubleshooting cloning errors - GitHub Docs
If you are trying to clone a private repository but do not have permission to view the repository, you will receive this error....
Read more >Solving “Fatal: Not A Git Repository” (Or Any Of The Parent ...
In this article, we will explore what causes, how to prevent, and how to solve the “fatal: not a git repository” error.
Read more >How to Fix the “fatal: not a git repository” Error - ContainIQ
Check that you correctly created the repo. If the directory doesn't contain a .git repo, use git init to properly initialize the repo...
Read more >How do I clone a subdirectory only of a Git repository?
What you are trying to do is called a sparse checkout, and that feature was added in Git 1.7.0 (Feb. 2012). The steps...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

If you use
meta project add [name] [git location], you’ll see it adds a new item to.metaand.gitignore.The point of meta is that it allows you to keep all of your separate repos in a structure that is easily able to be reproduced on other machines. As such, your meta repo has two jobs:
Child repos go in .gitignore so that changes made to their files aren’t seen as changes in the meta repo. In the child repos, you just use git.