diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-01-04 22:33:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-04 22:33:34 +0100 |
commit | 84d178316fbe7e93b11e34604fcee86812802986 (patch) | |
tree | 2c7794fad88516c97b1e6dee56c819088eb9be7d /Documentation | |
parent | Merge branch 'nd/checkout-dwim-fix' (diff) | |
parent | Documentation/clone: document ignored configuration variables (diff) | |
download | git-84d178316fbe7e93b11e34604fcee86812802986.tar.xz git-84d178316fbe7e93b11e34604fcee86812802986.zip |
Merge branch 'sg/clone-initial-fetch-configuration'
Refspecs configured with "git -c var=val clone" did not propagate
to the resulting repository, which has been corrected.
* sg/clone-initial-fetch-configuration:
Documentation/clone: document ignored configuration variables
clone: respect additional configured fetch refspecs during initial fetch
clone: use a more appropriate variable name for the default refspec
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/git-clone.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index a55536f0bf..2fd12524f9 100644 --- a/Documentation/git-clone.txt +++ b/Documentation/git-clone.txt @@ -189,6 +189,12 @@ 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`. Use the +corresponding `--mirror` and `--no-tags` options instead. --depth <depth>:: Create a 'shallow' clone with a history truncated to the |