-
Notifications
You must be signed in to change notification settings - Fork 246
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
--mode=git doesn't seem to respect git hash provided to degit #337
Comments
I think you might've found a bug.
Somebody please correct me if I have done something wrong. |
On our project, we've also found that unless the provided commit hash is the most recent one for the repository, it will fail. In other words, if you choose the latest commit hash, degit will work just fine. But if that repository pushes a newer commit, the older hash stops working. |
Hmmm... Could that be because it does git clone --depth 1? |
Nevermind what I said in that previous comment. degit does not do depth 1 in _cloneWithGit method. Tiged does. I misremembered. I noticed that there is a really good pull request that would add ability to use older commit hashes, subdirs and uses depth 1 for faster cloning. I have totally missed this before: We've implemented subdirs and depth 1 in tiged, but have not added ability for older hashes. |
@brunobely @visnaut This has now been fixed in the newest version of tiged. https://github.com/tiged/tiged That pull request did not work. So I had to do it myself. It was actually quite fun to figure it out. |
When trying to degit a private repo I used the following command:
However, instead of having #commit cloned to the my-project directory, I had the latest commit. Not sure if WAI or if it's a bug but figured I'd file an issue.
The text was updated successfully, but these errors were encountered: