land-remote: Force running in foreground when pushing to master.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 4 Oct 2010 11:53:02 +0000 (13:53 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Mon, 4 Oct 2010 11:53:02 +0000 (13:53 +0200)
script/land-remote.py

index 43fdacb785ff2245bccb4133a5c89f146025d344..93178b57aa255345b71bcb4ffa8f68504df21c0d 100755 (executable)
@@ -45,8 +45,8 @@ if not opts.foreground and not opts.email:
     sys.exit(1)
 
 if not opts.foreground and opts.push_master:
-    print "Unable to push to master when not running in foreground."
-    sys.exit(1)
+    print "Pushing to master, forcing run in foreground."
+    opts.foreground = True
 
 if not opts.remote_repo:
     print "%s$ mktemp -d" % opts.host