summaryrefslogtreecommitdiff
path: root/builtin/clone.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-12-21 18:14:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-12-21 19:26:30 (GMT)
commita31275d6ffd35bc1c269b7136f4031abe2abee70 (patch)
tree558e40ea2bc6810c9ab17a969a954ad8d64a03cc /builtin/clone.c
parent967cf9867de7c49393dfc666c941a1861d159639 (diff)
downloadgit-a31275d6ffd35bc1c269b7136f4031abe2abee70.zip
git-a31275d6ffd35bc1c269b7136f4031abe2abee70.tar.gz
git-a31275d6ffd35bc1c269b7136f4031abe2abee70.tar.bz2
clone: the -o option has nothing to do with <branch>
It is to give an alternate <name> instead of "origin" to the remote we are cloning from. Signed-off-by: Carlos Martín Nieto <cmn@elego.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/clone.c')
-rw-r--r--builtin/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/clone.c b/builtin/clone.c
index efe8b6c..86db954 100644
--- a/builtin/clone.c
+++ b/builtin/clone.c
@@ -84,8 +84,8 @@ static struct option builtin_clone_options[] = {
"directory from which templates will be used"),
OPT_CALLBACK(0 , "reference", &option_reference, "repo",
"reference repository", &opt_parse_reference),
- OPT_STRING('o', "origin", &option_origin, "branch",
- "use <branch> instead of 'origin' to track upstream"),
+ OPT_STRING('o', "origin", &option_origin, "name",
+ "use <name> instead of 'origin' to track upstream"),
OPT_STRING('b', "branch", &option_branch, "branch",
"checkout <branch> instead of the remote's HEAD"),
OPT_STRING('u', "upload-pack", &option_upload_pack, "path",