always rebase before submit

This commit is contained in:
Benjamin Dauvergne 2019-03-06 15:58:42 +01:00
parent 98d79a13bc
commit 7b7dae75fc
1 changed files with 3 additions and 1 deletions

View File

@ -244,8 +244,10 @@ def show(issue):
@issue.command()
@click.option('--issue', default=None, type=int)
@click.argument('number_of_commits', default=0)
def submit(issue, number_of_commits):
@click.pass_context
def submit(ctx, issue, number_of_commits):
'''Submit current patch from this issue branch to Redmine'''
ctx.invoke(rebase)
issue = get_issue(issue)
patches = get_patches(number_of_commits)
message = '\n\n' + MARKER