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>
Carlos Martín Nieto committed
Dec 21, 2011 at 18:14 UTC
a31275d6ffd35bc1c269b7136f4031abe2abee70
1 file changed
+2
-2
builtin/clone.c
+2
-2
@@ -84,8 +84,8 @@ static struct option builtin_clone_options[] = {
84
"directory from which templates will be used"),
85
OPT_CALLBACK(0 , "reference", &option_reference, "repo",
86
"reference repository", &opt_parse_reference),
87
- OPT_STRING('o', "origin", &option_origin, "branch",
88
- "use <branch> instead of 'origin' to track upstream"),
87
+ OPT_STRING('o', "origin", &option_origin, "name",
88
+ "use <name> instead of 'origin' to track upstream"),
89
OPT_STRING('b', "branch", &option_branch, "branch",
90
"checkout <branch> instead of the remote's HEAD"),
91
OPT_STRING('u', "upload-pack", &option_upload_pack, "path",