summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/init.py2
-rw-r--r--subcmds/upload.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 48df9e89..99007d60 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -248,7 +248,7 @@ to update the working directory files.
248 print '' 248 print ''
249 print 'Your identity is: %s <%s>' % (name, email) 249 print 'Your identity is: %s <%s>' % (name, email)
250 sys.stdout.write('is this correct [y/N]? ') 250 sys.stdout.write('is this correct [y/N]? ')
251 a = sys.stdin.readline().strip() 251 a = sys.stdin.readline().strip().lower()
252 if a in ('yes', 'y', 't', 'true'): 252 if a in ('yes', 'y', 't', 'true'):
253 break 253 break
254 254
diff --git a/subcmds/upload.py b/subcmds/upload.py
index 39721ac2..925652c2 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -186,8 +186,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
186 print ' %s' % commit 186 print ' %s' % commit
187 187
188 sys.stdout.write('to %s (y/N)? ' % remote.review) 188 sys.stdout.write('to %s (y/N)? ' % remote.review)
189 answer = sys.stdin.readline().strip() 189 answer = sys.stdin.readline().strip().lower()
190 answer = answer in ('y', 'Y', 'yes', '1', 'true', 't') 190 answer = answer in ('y', 'yes', '1', 'true', 't')
191 191
192 if answer: 192 if answer:
193 if len(branch.commits) > UNUSUAL_COMMIT_THRESHOLD: 193 if len(branch.commits) > UNUSUAL_COMMIT_THRESHOLD: