(
['-t', '--update-tracker'],
{
- 'action': 'store_true',
+ 'const': True,
'dest': 'updatetracker',
- 'help': 'to use with --push, also add the diff information to the tracker issue'
+ 'help': 'to use with --push, also add the diff information to the tracker issue',
+ 'metavar': 'gitref',
+ 'nargs': '?'
}
),
(
continue
# Update the tracker
- if args.updatetracker:
- M2.updateTrackerGitInfo(branch=newbranch)
+ if args.updatetracker != None:
+ ref = None if args.updatetracker == True else args.updatetracker
+ M2.updateTrackerGitInfo(branch=newbranch, ref=ref)
stashPop(stash)