summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Sallembien <nsallembien@google.com>2010-04-01 11:03:53 -0700
committerNico Sallembien <nsallembien@google.com>2010-04-01 11:30:56 -0700
commit6d7508b3d52781a3f8170a4257c65e2de176cc68 (patch)
tree57f5efc9bfcadc053fe9458869aa4a6964f0dcd4
parent9452e4ec0941fbee163e35ebdcd6ca6ee7df55cb (diff)
downloadgit-repo-6d7508b3d52781a3f8170a4257c65e2de176cc68.tar.gz
Allow 'y' as a valid response when confirming identityv1.6.9.1
I prefer having to type only one character rather than all three, and it seems like other confirmation prompts use the same style.
-rw-r--r--subcmds/init.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 75a58f11..4023ab6d 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -167,8 +167,9 @@ to update the working directory files.
167 167
168 print '' 168 print ''
169 print 'Your identity is: %s <%s>' % (name, email) 169 print 'Your identity is: %s <%s>' % (name, email)
170 sys.stdout.write('is this correct [yes/no]? ') 170 sys.stdout.write('is this correct [y/n]? ')
171 if 'yes' == sys.stdin.readline().strip(): 171 a = sys.stdin.readline().strip()
172 if a in ('yes', 'y', 't', 'true'):
172 break 173 break
173 174
174 if name != mp.UserName: 175 if name != mp.UserName: