diff options
| author | brian m. carlson <sandals@crustytoothpaste.net> | 2023-10-01 21:40:25 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-10-02 14:57:40 -0700 |
| commit | 9ae702faf151802f481e68db8d5cb5b536b31c2a (patch) | |
| tree | 74f5c80e0ecee0ef6edf733fecd332c92ef74294 /repository.c | |
| parent | 2328ebaa4ef7a921c7021db9e83e122dbe2ac7ad (diff) | |
| download | git-9ae702faf151802f481e68db8d5cb5b536b31c2a.tar.xz | |
repository: implement extensions.compatObjectFormat
Add a configuration option to enable updating and reading from
compatibility hash maps when git accesses the reposotiry.
Call the helper function repo_set_compat_hash_algo with the value
that compatObjectFormat is set to.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'repository.c')
| -rw-r--r-- | repository.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/repository.c b/repository.c index 6214f61cf4..9d91536b61 100644 --- a/repository.c +++ b/repository.c @@ -194,7 +194,7 @@ int repo_init(struct repository *repo, goto error; repo_set_hash_algo(repo, format.hash_algo); - repo_set_compat_hash_algo(repo, GIT_HASH_UNKNOWN); + repo_set_compat_hash_algo(repo, format.compat_hash_algo); repo->repository_format_worktree_config = format.worktree_config; /* take ownership of format.partial_clone */ |
