Show More
@@ -1040,6 +1040,8 b' class GitRepository(BaseRepository):' | |||||
1040 | pr_branch, self.path, target_ref.name, enable_hooks=True, |
|
1040 | pr_branch, self.path, target_ref.name, enable_hooks=True, | |
1041 | rc_scm_data=self.config.get('rhodecode', 'RC_SCM_DATA')) |
|
1041 | rc_scm_data=self.config.get('rhodecode', 'RC_SCM_DATA')) | |
1042 | merge_succeeded = True |
|
1042 | merge_succeeded = True | |
|
1043 | if close_branch and source_ref.name != target_ref.name and not dry_run and source_ref.type == 'branch': | |||
|
1044 | self.delete_branch(source_ref.name) | |||
1043 | except RepositoryError: |
|
1045 | except RepositoryError: | |
1044 | log.exception( |
|
1046 | log.exception( | |
1045 | 'Failure when doing local push from the shadow ' |
|
1047 | 'Failure when doing local push from the shadow ' |
@@ -300,31 +300,30 b'' | |||||
300 | </div> |
|
300 | </div> | |
301 | % endif |
|
301 | % endif | |
302 |
|
302 | |||
303 | ## DISABLED FOR GIT FOR NOW as the rebase/close is not supported yet |
|
303 | % if display_globals or repo_type in ['git']: | |
304 | ## % if display_globals or repo_type in ['git']: |
|
304 | <div class="panel panel-default"> | |
305 |
|
|
305 | <div class="panel-heading" id="vcs-pull-requests-options"> | |
306 | ## <div class="panel-heading" id="vcs-pull-requests-options"> |
|
306 | <h3 class="panel-title">${_('Git Pull Request Settings')}<a class="permalink" href="#vcs-git-pull-requests-options"> ¶</a></h3> | |
307 | ## <h3 class="panel-title">${_('Git Pull Request Settings')}<a class="permalink" href="#vcs-git-pull-requests-options"> ¶</a></h3> |
|
307 | </div> | |
308 | ## </div> |
|
308 | <div class="panel-body"> | |
309 |
## <div class=" |
|
309 | ## <div class="checkbox"> | |
310 | ## <div class="checkbox"> |
|
310 | ## ${h.checkbox('rhodecode_git_use_rebase_for_merging' + suffix, 'True', **kwargs)} | |
311 |
## |
|
311 | ## <label for="rhodecode_git_use_rebase_for_merging${suffix}">${_('Use rebase as merge strategy')}</label> | |
312 | ## <label for="rhodecode_git_use_rebase_for_merging${suffix}">${_('Use rebase as merge strategy')}</label> |
|
312 | ## </div> | |
313 |
## |
|
313 | ## <div class="label"> | |
314 | ## <div class="label"> |
|
314 | ## <span class="help-block">${_('Use rebase instead of creating a merge commit when merging via web interface.')}</span> | |
315 | ## <span class="help-block">${_('Use rebase instead of creating a merge commit when merging via web interface.')}</span> |
|
315 | ## </div> | |
316 | ## </div> |
|
316 | ||
317 | ## |
|
317 | <div class="checkbox"> | |
318 | ## <div class="checkbox"> |
|
318 | ${h.checkbox('rhodecode_git_close_branch_before_merging' + suffix, 'True', **kwargs)} | |
319 |
|
|
319 | <label for="rhodecode_git_close_branch_before_merging{suffix}">${_('Delete branch after merging it')}</label> | |
320 | ## <label for="rhodecode_git_close_branch_before_merging{suffix}">${_('Delete branch after merging it')}</label> |
|
320 | </div> | |
321 |
|
|
321 | <div class="label"> | |
322 | ## <div class="label"> |
|
322 | <span class="help-block">${_('Delete branch after merging it into destination branch.')}</span> | |
323 | ## <span class="help-block">${_('Delete branch after merging it into destination branch. No effect when rebase strategy is use.')}</span> |
|
323 | </div> | |
324 |
|
|
324 | </div> | |
325 |
|
|
325 | </div> | |
326 | ## </div> |
|
326 | % endif | |
327 | ## % endif |
|
|||
328 |
|
|
327 | ||
329 | <script type="text/javascript"> |
|
328 | <script type="text/javascript"> | |
330 |
|
329 |
General Comments 0
You need to be logged in to leave comments.
Login now