diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2025-07-01 21:22:35 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-07-01 14:58:26 -0700 |
commit | 9d619f2ef8c95a791d34f5d3cb2793dcc0b8610d (patch) | |
tree | 4e53ca88f262e61ada3f6c6473e4e936326a1400 /builtin/commit-graph.c | |
parent | f957ce078f61266b3212b88d9c357a1b7f071a6f (diff) |
t5300: choose the built-in hash outside of a repo
Right now, the built-in default hash is always SHA-1, but that will
change in a future commit. Instead of assuming that operating outside
of a repository will always use SHA-1, look up the default hash
algorithm for operating outside of a repository using an appropriate
environment variable, which will always be correct.
Additionally, for operations outside of a repository, use the
DEFAULT_HASH_ALGORITHM prerequisite rather than SHA1.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions