Skip to content

Commit

Permalink
Fix should_remove_source_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Pete Browne committed Nov 21, 2016
1 parent 764d3ca commit ac2bf24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab/objects.py
Expand Up @@ -1732,9 +1732,9 @@ def merge(self, merge_commit_message=None,
if merge_commit_message:
data['merge_commit_message'] = merge_commit_message
if should_remove_source_branch:
data['should_remove_source_branch'] = 'should_remove_source_branch'
data['should_remove_source_branch'] = True
if merged_when_build_succeeds:
data['merged_when_build_succeeds'] = 'merged_when_build_succeeds'
data['merged_when_build_succeeds'] = True

r = self.gitlab._raw_put(url, data=data, **kwargs)
errors = {401: GitlabMRForbiddenError,
Expand Down

0 comments on commit ac2bf24

Please sign in to comment.