James Moger
2014-05-05 d69d73e5da5a12f279d5c0c38c871801739f33d6
src/main/java/pt.py
@@ -31,7 +31,7 @@
#
__author__ = 'James Moger'
__version__ = '1.0.5'
__version__ = '1.0.6'
import subprocess
import argparse
@@ -187,15 +187,6 @@
    print("Pushing your patchset to the '{}' repository".format(args.remote))
    __call(['git', 'push', args.remote, ref_spec], echo=True)
    if args.force and args.patchset is not None and args.patchset is not 0:
        # if we had to force the push then there is a new patchset
        # revision on the server so checkout out the new patchset
        args.patchset = None
        args.force = False
        args.quiet = True
        checkout(args)
    return
@@ -298,7 +289,7 @@
            # set the upstream branch configuration
            args.id = int(fields[1].strip()[len('--> #'):])
            __call(['git', 'fetch', args.remote])
            __call(['git', 'branch', '--set-upstream-to={}/ticket/{:d}'.format(args.remote, args.id)])
            __call(['git', 'branch', '-u', '{}/ticket/{:d}'.format(args.remote, args.id)])
            break
    return