diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2017-06-16 19:38:49 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-16 15:10:15 -0700 |
commit | f4a9bd49c7f3d59559dd7f0982b0f840209160fb (patch) | |
tree | a74d138802e9b2fe212824233e9279f22a2498a8 | |
parent | 45c5e6d9fe115b9e8d10e1450b621d3923745278 (diff) | |
download | git-sg/clone-refspec-from-command-line-config.tar.gz |
Documentation/clone: document ignored configuration variablessg/clone-refspec-from-command-line-config
Due to limitations/bugs in the current implementation, some
configuration variables specified via 'git clone -c var=val' (or 'git
-c var=val clone') are ignored during the initial fetch and checkout.
Let the users know which configuration variables are known to be
ignored ('remote.origin.mirror' and 'remote.origin.tagOpt') under the
documentation of 'git clone -c'.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | Documentation/git-clone.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index ec41d3d698..49d4af87ec 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -186,6 +186,11 @@ objects from the source repository into a pack in the cloned repository. values are given for the same key, each value will be written to the config file. This makes it safe, for example, to add additional fetch refspecs to the origin remote. ++ +Due to limitations of the current implementation, some configuration +variables do not take effect until after the initial fetch and checkout. +Configuration variables known to not take effect are: +`remote.<name>.mirror` and `remote.<name>.tagOpt`. --depth <depth>:: Create a 'shallow' clone with a history truncated to the |