summaryrefslogtreecommitdiff
path: root/repository.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-07-29 23:14:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-30 16:16:49 (GMT)
commiteff45daab8a5414f38bda6d83c6669f1bf95e570 (patch)
treed91dc420511ac75439c555562faadd46d2e53d5f /repository.c
parentb5b46d7973763cffde59425d53286faab4e4e712 (diff)
downloadgit-eff45daab8a5414f38bda6d83c6669f1bf95e570.zip
git-eff45daab8a5414f38bda6d83c6669f1bf95e570.tar.gz
git-eff45daab8a5414f38bda6d83c6669f1bf95e570.tar.bz2
repository: enable SHA-256 support by default
Now that we have a complete SHA-256 implementation in Git, let's enable it so people can use it. Remove the ENABLE_SHA256 define constant everywhere it's used. Add tests for initializing a repository with SHA-256. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Reviewed-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.c')
-rw-r--r--repository.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/repository.c b/repository.c
index 6f7f6f0..a4174dd 100644
--- a/repository.c
+++ b/repository.c
@@ -89,10 +89,6 @@ void repo_set_gitdir(struct repository *repo,
void repo_set_hash_algo(struct repository *repo, int hash_algo)
{
repo->hash_algo = &hash_algos[hash_algo];
-#ifndef ENABLE_SHA256
- if (hash_algo != GIT_HASH_SHA1)
- die(_("The hash algorithm %s is not supported in this build."), repo->hash_algo->name);
-#endif
}
/*