]> git.ipfire.org Git - thirdparty/git.git/blobdiff - setup.c
Merge branch 'ps/ref-transaction-hook'
[thirdparty/git.git] / setup.c
diff --git a/setup.c b/setup.c
index eb066db6d8c123da03e8992db84a3e562bed8fd3..dbac2eabe8fa4016ac4de415ba5c176155c07e12 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -1308,6 +1308,7 @@ void check_repository_format(struct repository_format *fmt)
                fmt = &repo_fmt;
        check_repository_format_gently(get_git_dir(), fmt, NULL);
        startup_info->have_repository = 1;
+       repo_set_hash_algo(the_repository, fmt->hash_algo);
        clear_repository_format(&repo_fmt);
 }