Fix multi-change confirmation testing.

Change-Id: If779218e0baecd1f1d93b023206d9ce5a2429702
This commit is contained in:
Monty Taylor
2011-11-11 17:54:00 -05:00
parent 2d75eca2ea
commit 48044e3629

View File

@@ -294,7 +294,7 @@ def assert_one_change(remote, branch, yes):
print "The outstanding commits are:\n\n%s\n" % output
print "Is this really what you meant to do?"
yes_no = raw_input("Type 'yes' to confirm: ")
if yes_no.lower != "yes":
if yes_no.lower().strip() != "yes":
print "Aborting."
print "Please rebase/squash your changes and try again"
sys.exit(1)