Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bootstrap] Creates .git directory #438

Closed
marekcirkos opened this issue Dec 13, 2016 · 8 comments
Closed

[Bootstrap] Creates .git directory #438

marekcirkos opened this issue Dec 13, 2016 · 8 comments

Comments

@marekcirkos
Copy link

Version: 2.0.0-beta.30

Every time I call learn bootstrap it creates .git directory. Is this expected behaviour? It is a bit frustrating when working with other repos.

Is it possible to disable git integration completely? --skip-git does not help.

Best regards

@gigabo
Copy link
Contributor

gigabo commented Dec 13, 2016

Hi @marekcirkos good question! It seems like for bootstrap it shouldn't be necessary.

Interested in tracking down what's causing it? 😁

@marekcirkos
Copy link
Author

marekcirkos commented Dec 13, 2016

I already did :).
You initialise it Repository constructor

GitUtilities.init();

It gets allocated in BaseCommand for every single command https://github.com/lerna/lerna/blob/master/src/Command.js#L18

@gigabo
Copy link
Contributor

gigabo commented Dec 13, 2016

Oh! Nice find!

Well... maybe that could be more targeted. What commands actually need to initialize it? 🤔

@marekcirkos
Copy link
Author

Lol, I guess I edited my comment during your post :)

It gets allocated in BaseCommand for every single command https://github.com/lerna/lerna/blob/master/src/Command.js#L18

@natew
Copy link

natew commented May 2, 2017

Any update here? I'm trying to run lerna from Dockerfile, running into this which would require adding unnecessary git dep to docker.

@noherczeg
Copy link
Contributor

noherczeg commented May 2, 2017

@natew I'm looking into this right now. BTW: currently (rc.4) errors out if you do not have git initialized and does not create a repo internally.

@evocateur
Copy link
Member

This is fixed by #803

@lock
Copy link

lock bot commented Dec 28, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants