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

Add reference by commit hash support #18

Open
braydonf opened this issue Feb 19, 2020 · 0 comments
Open

Add reference by commit hash support #18

braydonf opened this issue Feb 19, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@braydonf
Copy link
Owner

As there isn't currently a way to clone by arbitrary hash, only tags and branch heads are available when using git clone --depth 1 --branch <tag|branch> <repo>, it will be necessary to clone the entire repository and then navigate to the hash. This is inefficient, so such usage should be discouraged. However there may be some cases when it will be desirable, for example in implementing a lockfile. With the entire repository already mirrored locally, in a cache, it is less of an inefficiency.

@braydonf braydonf added the enhancement New feature or request label Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant