]> Kevux Git Server - rit/commit
read-cache: use istate->repo for trace2 logging
authorJayesh Daga <jayeshdaga99@gmail.com>
Mon, 30 Mar 2026 18:38:06 +0000 (18:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2026 20:02:29 +0000 (13:02 -0700)
commita7aca156779f6c40d454f04ed151d2f482396f0f
treeedd83d665cbe7e661ea130540affc5ff5e9ab7b7
parent5361983c075154725be47b65cca9a2421789e410
read-cache: use istate->repo for trace2 logging

trace2 calls in read-cache.c use the global 'the_repository',
even though the relevant index_state provides an explicit
repository pointer via 'istate->repo'.

Using the global repository can result in incorrect trace2
output when multiple repository instances are in use, as
events may be attributed to the wrong repository.

Use 'istate->repo' instead to ensure correct repository
attribution.

Signed-off-by: Jayesh Daga <jayeshdaga99@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
read-cache.c