Browse Source

Merge branch 'jc/doc-clarify-git-default-hash-variable'

The documentation was misleading about the interaction between
GIT_DEFAULT_HASH and "git clone", which has been clarified to
stress that the variable is to be ignored by the command.

* jc/doc-clarify-git-default-hash-variable:
  doc: GIT_DEFAULT_HASH is and will be ignored during "clone"
main
Junio C Hamano 2 years ago
parent
commit
b14a73097c
  1. 6
      Documentation/git.txt

6
Documentation/git.txt

@ -546,9 +546,9 @@ double-quotes and respecting backslash escapes. E.g., the value @@ -546,9 +546,9 @@ double-quotes and respecting backslash escapes. E.g., the value

`GIT_DEFAULT_HASH`::
If this variable is set, the default hash algorithm for new
repositories will be set to this value. This value is currently
ignored when cloning; the setting of the remote repository
is used instead. The default is "sha1". THIS VARIABLE IS
repositories will be set to this value. This value is
ignored when cloning and the setting of the remote repository
is always used. The default is "sha1". THIS VARIABLE IS
EXPERIMENTAL! See `--object-format` in linkgit:git-init[1].

Git Commits

Loading…
Cancel
Save