Skip to content

Commit 7eae4a3

Browse files
szedergitster
authored andcommitted
Documentation/clone: document ignored configuration variables
Due to limitations 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', along with hints to use the options '--mirror' and '--no-tags' instead. Signed-off-by: SZEDER Gábor <[email protected]> Reviewed-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 515be83 commit 7eae4a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/git-clone.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ objects from the source repository into a pack in the cloned repository.
189189
values are given for the same key, each value will be written to
190190
the config file. This makes it safe, for example, to add
191191
additional fetch refspecs to the origin remote.
192+
+
193+
Due to limitations of the current implementation, some configuration
194+
variables do not take effect until after the initial fetch and checkout.
195+
Configuration variables known to not take effect are:
196+
`remote.<name>.mirror` and `remote.<name>.tagOpt`. Use the
197+
corresponding `--mirror` and `--no-tags` options instead.
192198

193199
--depth <depth>::
194200
Create a 'shallow' clone with a history truncated to the

0 commit comments

Comments
 (0)