-
- Downloads
There was a problem fetching the pipeline summary.
Add `source_branch` option for various git operations
If `source_branch` option is passed, and target branch cannot be found, `Repository#update_branch_with_hooks` would try to create a new branch from `source_branch`. This way, we could make changes in the new branch while only firing the hooks once for the changes. Previously, we can only create a new branch first then make changes to the new branch, firing hooks twice. This behaviour is bad for CI. Fixes #7237
parent
3128641f
No related branches found
No related tags found
Pipeline #
Showing
- app/models/repository.rb 72 additions, 26 deletionsapp/models/repository.rb
- app/services/commits/change_service.rb 5 additions, 5 deletionsapp/services/commits/change_service.rb
- app/services/create_branch_service.rb 11 additions, 11 deletionsapp/services/create_branch_service.rb
- app/services/files/base_service.rb 5 additions, 6 deletionsapp/services/files/base_service.rb
- app/services/files/create_dir_service.rb 8 additions, 1 deletionapp/services/files/create_dir_service.rb
- app/services/files/create_service.rb 10 additions, 1 deletionapp/services/files/create_service.rb
- app/services/files/delete_service.rb 8 additions, 1 deletionapp/services/files/delete_service.rb
- app/services/files/multi_service.rb 2 additions, 1 deletionapp/services/files/multi_service.rb
- app/services/files/update_service.rb 2 additions, 1 deletionapp/services/files/update_service.rb
- app/services/validate_new_branch_service.rb 22 additions, 0 deletionsapp/services/validate_new_branch_service.rb
app/services/validate_new_branch_service.rb
0 → 100644
Please register or sign in to comment