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

Added options to just git clone a url and leave .git alone if requested #82

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

3p3r
Copy link

@3p3r 3p3r commented Jan 16, 2018

This PR allows napa to:

  • Just perform a simple git clone instead of downloading a URL
  • Leave the .git folder alone if requested in the config.

Sometimes it's required to git clone a SHA1. Downloading its archive from Github is not useful. This PR introduces @ in specifying the tag/branch/release. When @ is given, the URL is treated as-is.

.git folder is crucial for some repos that perform hooks and are set up with patch-package

Also, git checkout now forces to do a checkout. Some repos do post-clone hooks that leaves the repo unclean. In that state, doing a simple unforced git checkout fails.

@TomByrne
Copy link

+1
Would be nice to be able to specify repos that should retain their .git folders for inline dependency development.
Could be a nicer workflow than having to use npm link to point to a development version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants