diff --git a/git_redmine.py b/git_redmine.py index 41462d1..7e9c644 100644 --- a/git_redmine.py +++ b/git_redmine.py @@ -221,7 +221,7 @@ def take(issue_number, reference): click.echo('Moved to branch %s' % branch_name) current_user = api.user.get('current') if ((not hasattr(issue, 'assigned_to') or issue.assigned_to.id != current_user.id) - and click.confirm('Do you want to assign the issue to yourself ?', default=True)): + and click.confirm('Do you want to assign the issue to yourself ?', default=not hasattr(issue,ยท'assigned_to'))): issue.assigned_to_id = current_user.id issue.save() if new: