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,13 +300,12 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="panel-body"> |
|
|||
310 |
## |
|
309 | ## <div class="checkbox"> | |
311 |
## |
|
310 | ## ${h.checkbox('rhodecode_git_use_rebase_for_merging' + suffix, 'True', **kwargs)} | |
312 |
## |
|
311 | ## <label for="rhodecode_git_use_rebase_for_merging${suffix}">${_('Use rebase as merge strategy')}</label> | |
@@ -314,17 +313,17 b'' | |||||
314 |
## |
|
313 | ## <div class="label"> | |
315 |
## |
|
314 | ## <span class="help-block">${_('Use rebase instead of creating a merge commit when merging via web interface.')}</span> | |
316 |
## |
|
315 | ## </div> | |
317 | ## |
|
316 | ||
318 |
|
|
317 | <div class="checkbox"> | |
319 |
|
|
318 | ${h.checkbox('rhodecode_git_close_branch_before_merging' + suffix, 'True', **kwargs)} | |
320 |
|
|
319 | <label for="rhodecode_git_close_branch_before_merging{suffix}">${_('Delete branch after merging it')}</label> | |
321 |
|
|
320 | </div> | |
322 |
|
|
321 | <div class="label"> | |
323 |
|
|
322 | <span class="help-block">${_('Delete branch after merging it into destination branch.')}</span> | |
324 |
|
|
323 | </div> | |
325 |
|
|
324 | </div> | |
326 |
|
|
325 | </div> | |
327 |
|
|
326 | % 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