Backport only updates tracker details when combined with --push
authorFrederic Massart <fred@moodle.com>
Thu, 12 Sep 2013 10:00:16 +0000 (18:00 +0800)
committerFrederic Massart <fred@moodle.com>
Thu, 12 Sep 2013 10:00:16 +0000 (18:00 +0800)
lib/commands/backport.py

index df3e0c6..1010698 100644 (file)
@@ -213,9 +213,9 @@ class BackportCommand(Command):
                     stashPop(stash)
                     continue
 
-            # Update the tracker
-            if args.updatetracker:
-                M2.updateTrackerGitInfo(branch=newbranch)
+                # Update the tracker
+                if args.updatetracker:
+                    M2.updateTrackerGitInfo(branch=newbranch)
 
             stashPop(stash)