Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
clone: the -o option has nothing to do with <branch>
author
Carlos Martín Nieto
<cmn@elego.de>
Wed, 21 Dec 2011 18:14:09 +0000
(18:14 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Dec 2011 19:26:30 +0000
(11:26 -0800)
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>
builtin/clone.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
967cf98
)
diff --git
a/builtin/clone.c
b/builtin/clone.c
index efe8b6cce5a9f2ae40c6f69755debecfb6b501ca..86db95473021bc8d0b1cc8850185e1660fd9c776 100644
(file)
--- 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),
"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",
OPT_STRING('b', "branch", &option_branch, "branch",
"checkout <branch> instead of the remote's HEAD"),
OPT_STRING('u', "upload-pack", &option_upload_pack, "path",