question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wrongly claims child repos are not cloned locally

See original GitHub issue

Ran 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:closed
  • Created 5 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mateodelnortecommented, Mar 15, 2019

If you use meta project add [name] [git location], you’ll see it adds a new item to .meta and .gitignore.

1reaction
mateodelnortecommented, Mar 15, 2019

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:

  1. to denote the layout of your child repos
  2. to keep files that don’t go in your child repos while ignoring the child repos so they’re not doubly tracked

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found