mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
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>
This commit is contained in:
parent
967cf9867d
commit
a31275d6ff
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue