diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-05-13 10:19:46 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-05-13 10:19:46 -0700 |
| commit | b077cf2679bd9127457b1afe2b05dfcebdae00cd (patch) | |
| tree | 324db3722adc676fc19f8d799cc48ff35e042683 /attr.c | |
| parent | Merge branch 'ps/ci-python-2-deprecation' (diff) | |
| parent | stop using HEAD for attributes in bare repository by default (diff) | |
| download | git-b077cf2679bd9127457b1afe2b05dfcebdae00cd.tar.gz git-b077cf2679bd9127457b1afe2b05dfcebdae00cd.zip | |
Merge branch 'jc/no-default-attr-tree-in-bare'
Git 2.43 started using the tree of HEAD as the source of attributes
in a bare repository, which has severe performance implications.
For now, revert the change, without ripping out a more explicit
support for the attr.tree configuration variable.
* jc/no-default-attr-tree-in-bare:
stop using HEAD for attributes in bare repository by default
Diffstat (limited to 'attr.c')
| -rw-r--r-- | attr.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -1222,13 +1222,6 @@ static void compute_default_attr_source(struct object_id *attr_source) ignore_bad_attr_tree = 1; } - if (!default_attr_source_tree_object_name && - startup_info->have_repository && - is_bare_repository()) { - default_attr_source_tree_object_name = "HEAD"; - ignore_bad_attr_tree = 1; - } - if (!default_attr_source_tree_object_name || !is_null_oid(attr_source)) return; |
