Skip to content

Commit

Permalink
fix(release): don't fast-forward while merging
Browse files Browse the repository at this point in the history
  • Loading branch information
sagarvora committed Jan 15, 2019
1 parent 97b2891 commit c1bba94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bench/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def create_release(repo_path, new_version, from_branch='develop', to_branch='mas
g = repo.git
g.checkout(to_branch)
try:
g.merge(from_branch)
g.merge(from_branch, '--no-ff')
except git.exc.GitCommandError as e:
handle_merge_error(e, source=from_branch, target=to_branch)

Expand Down Expand Up @@ -358,4 +358,3 @@ def push_branch_for_old_major_version(bench_path, bump_type, app, repo_path, fro

print("Pushing {old_major_version_branch} ".format(old_major_version_branch=old_major_version_branch))
print(g.push(remote, *args))

0 comments on commit c1bba94

Please sign in to comment.