diff options
| author | John Cai <johncai86@gmail.com> | 2023-10-09 13:21:00 +0000 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-10-09 14:42:02 -0700 |
| commit | e95bafc52f095b33b5a283179e08a44279c293d0 (patch) | |
| tree | 7ca13bb2c7fa80f96a82f7dc7b68cc08d8034ffd /gitweb/gitweb.perl | |
| parent | Merge branch 'jk/redact-h2h3-headers-fix' into maint-2.41 (diff) | |
| download | git-e95bafc52f095b33b5a283179e08a44279c293d0.tar.gz git-e95bafc52f095b33b5a283179e08a44279c293d0.zip | |
merge-ort: initialize repo in index state
initialize_attr_index() does not initialize the repo member of
attr_index. Starting in 44451a2e5e (attr: teach "--attr-source=<tree>"
global option to "git", 2023-05-06), this became a problem because
istate->repo gets passed down the call chain starting in
git_check_attr(). This gets passed all the way down to
replace_refs_enabled(), which segfaults when accessing r->gitdir.
Fix this by initializing the repository in the index state.
Signed-off-by: John Cai <johncai86@gmail.com>
Helped-by: Christian Couder <christian.couder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.perl')
0 files changed, 0 insertions, 0 deletions
