aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/hash-object.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-15 14:31:01 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-15 14:31:01 -0700
commita6b007093a704324161fbf37c0c5bded1203d84a (patch)
treed35981c46cb19e0609d073719be6b384ec914b60 /builtin/hash-object.c
parent16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff)
parentc79bb70a2e7d9158ec165ea16ad45371cd6e350d (diff)
downloadgit-a6b007093a704324161fbf37c0c5bded1203d84a.tar.gz
Merge branch 'bc/use-sha256-by-default-in-3.0' into kl/test-installed-fix
Diffstat (limited to 'builtin/hash-object.c')
-rw-r--r--builtin/hash-object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/hash-object.c b/builtin/hash-object.c
index 6a99ec250d..213a302e05 100644
--- a/builtin/hash-object.c
+++ b/builtin/hash-object.c
@@ -104,7 +104,7 @@ int cmd_hash_object(int argc,
prefix = setup_git_directory_gently(&nongit);
if (nongit && !the_hash_algo)
- repo_set_hash_algo(the_repository, GIT_HASH_SHA1);
+ repo_set_hash_algo(the_repository, GIT_HASH_DEFAULT);
if (vpath && prefix) {
vpath_free = prefix_filename(prefix, vpath);