summaryrefslogtreecommitdiffstats
path: root/editor.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-07-02 10:53:04 -0700
committerShawn O. Pearce <sop@google.com>2009-07-02 10:53:04 -0700
commit37dbf2bf0fa799530052ffd010dadbd4c01b7746 (patch)
tree9e9be8619020ba6b6de2bc28ba5da94fa69e6188 /editor.py
parent438c54713a7ca56fba2a7985b6563aa076b17169 (diff)
downloadgit-repo-37dbf2bf0fa799530052ffd010dadbd4c01b7746.tar.gz
Try to prevent 'repo sync' as a user namev1.6.8.6
When someone copies and pastes a setup line from a web page, they might actually copy 'repo sync' onto the clipboard and wind up pasting it into the "Your Name" prompt. This means they will initialize their client with the user name of "repo sync", creating some rather funny looking commits later on. For example: To setup your source tree: mkdir ~/code cd ~/code repo init -u git://.... repo sync If this entire block was just blindly copy and pasted into the terminal, the shell won't read "repo sync" but "repo init" will. By showing the user their full identity string, and asking them to confirm it before we continue, we can give the hapless user a chance to recover from this mistake, without unfairly harming those who were actually named 'repo' by their parents. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'editor.py')
0 files changed, 0 insertions, 0 deletions