Support native project cloning#53
Open
adrianschroeter wants to merge 1 commit into
Open
Conversation
Esp. for osc, we support here "onlybuild" parameters now. So we support faster checkouts of :PullRequest: projects. Usually we want a project git cloned, but only the submodules initialized which are providing the package source for the packages listed (if there are onlybuild arguments). This is triggered via new --native-projectmode switch. It takes any argument to enable, when setting it to 'recursive' it will also clone all submodules and assets recursively.
Member
Author
|
Daniel has prepared a PR for osc using it here: : openSUSE/osc#2136 @dmach you will need to use the new --native-projectmode switch instead. |
3583dbe to
c94822f
Compare
dmach
reviewed
May 18, 2026
Comment on lines
+913
to
+914
| parser.add_argument('--native-projectmode', | ||
| help='clone the project git without submodules. set it to recursive if you want all submodule sources') |
Contributor
There was a problem hiding this comment.
It would be nice to specify choices such as choices=['recursive', 'normal'].
I made normal up, maybe you have a better word for it.
BTW, how should I use it in obs? With recursive or without?
Member
Author
There was a problem hiding this comment.
'recursive' and 'flat' maybe ... good idea. Maybe even a third option "empty" to skip submodule cloning complete.
git-obs you mean? Good question, very large projects should maybe cloned only 'empty' by default, but this is a bit of a heuristic.
'recursive' should be only optional IMHO.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Esp. for osc, we support here "onlybuild" parameters now. So we support faster checkouts of :PullRequest: projects.
Usually we want a project git cloned, but only the submodules initialized which are providing the package source for the packages listed (if there are onlybuild arguments).
This is triggered via new --native-projectmode switch. It takes any argument to enable, when setting it to 'recursive' it will also clone all submodules and assets recursively.