-
Notifications
You must be signed in to change notification settings - Fork 369
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
Fetch only master of index, and in shallow mode #403
Comments
krew-index
in shallow mode?index
in shallow mode?
For now, I think this is not a serious issue. (1) We are still at a very small number of git objects to make any perf issue noticeable. (2) We don't really do branches that would harm clients, and as you said we can later on migrate to a new model without any pain. |
Yes, the But only fetching |
Yeah, that's not big of a deal but if you want to fix it, I think we can add |
/retitle Fetch only master of index, and in shallow mode Something else we'd need to consider is going to be private Git repos. For the centralized index we can hardcode I say let's keep things as is, we can refactor over time if needed. I'm not too worried about extra branches getting fetched atm. |
index
in shallow mode?
Put up a PR for this issue. |
Currently, we do a plain
git fetch
:krew/pkg/gitutil/git.go
Lines 52 to 54 in b303e3a
This has some drawbacks, because it
It would be better, if instead we could
master
)That way, we could keep the
index
folder as lean as possible.This should do the trick:
The text was updated successfully, but these errors were encountered: