-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Git] Check for smart git remote before using depth option #36
Conversation
@segiddins Please never refer to intimate knowledge, but explain the full issue instead so everyone can look at it and understand it right the first time around. Now I don’t know what this is about exactly, is it that non-smart remotes would be slow with |
This relates to: CocoaPods/CocoaPods#2537 |
@orta Thanks 👍 |
@segiddins This looks good to me. Assuming it actually works, what type of feedback are you looking for? |
Looks good to me as well! 👍 |
@alloy non-smart remotes don't support the depth option at all. I'm looking for feedback in 3 places.
|
Those both sound perfectly fine by me 👍 |
Looks like https://github.com/martinemde/gitable matches SCP-style URIs. I can either use it or take inspiration from its parsing to create a gem that doesn't depend upon |
@alloy I don't really like my solution, as it relies on another gem for git URI parsing. On the other hand, the gem could be used to improve the generation of names from source URIs |
Fixed |
After playing around with this, I realize it's totally useless if the endpoint requires authentications 😞 |
…Error so the Downloader can catch it Helpful for CocoaPods/cocoapods-downloader#36
@@ -55,22 +55,50 @@ def download_head! | |||
# If any specific option should be ignored and the HEAD of the | |||
# repo should be cloned. | |||
# | |||
def clone(force_head = false) | |||
# @param [Bool] shallow_clone |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably document the default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We didn't do that elsewhere in here, and I think YARD
will actually handle that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Git] Check for smart git remote before using depth option
:D |
@segiddins Great work!! 👍 |
I think this should've released bumping the patch version. |
@fabiopelosin I think we were waiting until we release CocoaPods 0.34.2 |
@fabiopelosin Yes, we're doing 0.34.2 and patching all the things soon. (Discussions in Slack). |
(For clarity: My point was that there is no need to wait for CP, this could have been released straight away) |
@fabiopelosin I don't have gem release powers, but feel free for you or Kyle to do it if you want. |
I did think about this the other day, but then though something else might make it into this patch release. There is also the issue with GHE not supporting |
@kylef the GHE issue should've been fixed by this PR. |
I'll see to releasing this in the morning 👍 |
I commented for this reason. There would have been no problem in doing two patch releases (especially as they are almost automated for a single dependency like cocoapods-downloader). I learned my lesson, about releasing often 😉 |
Agreed :) |
Hi guys, I am reading through the comments here and I mostly likely missing something, but it looks like the problem is NOT fixed. When I try to use Any advise will be much appreciated, |
@fabiopelosin this PR is incomplete (aka tests fail and the
URI.regexp
isn't great), but this approach should address the issues people are having where their remotes aren't supporting the depth option.