Go to file
Shawn O. Pearce 37dbf2bf0f Try to prevent 'repo sync' as a user name
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>
2009-07-02 10:53:04 -07:00
docs Remove support for the extra <remote> definitions in manifests 2009-05-19 13:01:52 -07:00
hooks Install a default pre-auto-gc hook in all repositories 2008-11-03 11:00:44 -08:00
subcmds Try to prevent 'repo sync' as a user name 2009-07-02 10:53:04 -07:00
tests git_config: handle configuration entries with no values 2009-06-29 00:24:36 -07:00
.gitignore .gitignore: add an entry for repopickles 2009-06-28 15:08:56 -07:00
.project Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
.pydevproject Add PyDev project files to repo 2009-06-02 00:09:07 +02:00
color.py Add -p to repo forall to improve output formatting 2009-04-18 13:49:13 -07:00
command.py Add -p to repo forall to improve output formatting 2009-04-18 13:49:13 -07:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Document any crashes from the user's text editor 2009-06-24 07:15:21 -07:00
error.py Document any crashes from the user's text editor 2009-06-24 07:15:21 -07:00
git_command.py Refactor git version detection for reuse 2009-06-12 09:32:50 -07:00
git_config.py git_config: handle configuration entries with no values 2009-06-29 00:24:36 -07:00
git_refs.py Make usage of open safer by setting binary mode and closing fds 2009-04-18 14:48:03 -07:00
git_ssh Automatically use SSH control master support during sync 2009-04-18 16:50:47 -07:00
main.py Refactor Manifest to be XmlManifest 2009-05-29 09:31:28 -07:00
manifest_xml.py Support detached HEAD in manifest repository 2009-06-25 16:47:30 -07:00
pager.py Don't start the pager if stdout is a pipe 2009-04-01 07:24:22 -07:00
progress.py Only display a progress meter once we spend 0.5 seconds on a task 2009-04-18 10:09:16 -07:00
project.py Silence 'Current branch %s is up to date' during sync 2009-06-03 11:09:31 -07:00
repo Refactor Manifest to be XmlManifest 2009-05-29 09:31:28 -07:00
trace.py Fix repo --trace to show ref and config loads 2009-04-18 09:54:51 -07:00