-
Notifications
You must be signed in to change notification settings - Fork 68
Optional merges #18
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
Optional merges #18
Conversation
case where we want to use the aggregator just to fetch a git repo.
|
@foutoucour thanks for contributing! I'm not sure what you want to happen if there is no merge section. If there is only one item in the merge section, it will simply clone the associated remote and switch to the chosen branch. |
|
Actually, I started to use Here an example of how I set up an entry for a no-merges add-on: Should I operate otherwise? |
d6f3793 to
fe30567
Compare
|
@foutoucour this is the simplest gitaggregate you can do to clone a single branch; parts/web:
remotes:
oca: https://github.com/OCA/web
acsone: https://github.com/acsone/web
merges:
- oca 10.0
target: acsone mybranch Does that do what you want? edit: replace "acsone" by a remote where you can push (although gitaggregate does push only when you ask it to do so) |
|
I see. |
|
@foutoucour here it's how we use it to build a patched Odoo version with all the fixes not yet merged into odoo but required for one of our project.... ./src/odoo:
remotes:
odoo: git@github.com:odoo/odoo.git
origin: git@github.com:acsone/odoo.git
merges:
- odoo 10.0
- origin 10.0-with-setup
- odoo refs/pull/17519/head # [10.0][FIX] add missing multi-company security rule for stock_location_route
- odoo refs/pull/19198/head # [FIX] preserve prefetch for sudo switch in name_get compute on product_product
- odoo refs/pull/19447/head # [FIX] related fields should be readonly to avoid recompute
- origin 10.0-models_improve_read_translation_rco-dro
- origin 10.0-pos_order_new_hooks_fix_conflicts-bwi # Fix conflicts between PRs 17580 and 17596
- odoo refs/pull/18147/head # [10.0][FIX] stock: Wrong move picking assignation
- odoo refs/pull/20430/head # [10.0][FIX] stock: Forecasted stock report is not multi-company compliant
- odoo refs/pull/20971/head # [FIX] purchase: reset to draft
- odoo refs/pull/21207/head # [10.0] members of group_erp_manager must be able to update base.user_groups_view
- origin 10.0-account_chart_template_fix_conflicts-fho
shell_command_after:
- git rm -r addons/l10n_es
- git commit -m "remove l10n_es, we'll use OCA/l10n-spain"
target: origin 10.0-my_project_branch |
|
thank you for the details @lmignon! |
Put the
mergeskeyword as optional in the config file.It allows the case where we want to only fetch a repository without to merge anything.
I don't know if it is by design though
PS: I need to work on the tests..