Skip to content

Commit a31275d

Browse files
carlosmngitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 967cf98 commit a31275d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/clone.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ static struct option builtin_clone_options[] = {
8484
"directory from which templates will be used"),
8585
OPT_CALLBACK(0 , "reference", &option_reference, "repo",
8686
"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"),
8989
OPT_STRING('b', "branch", &option_branch, "branch",
9090
"checkout <branch> instead of the remote's HEAD"),
9191
OPT_STRING('u', "upload-pack", &option_upload_pack, "path",

0 commit comments

Comments
 (0)