]> git.99rst.org Git - git.git/commit
builtin/receive-pack: drop redundant tmpdir env
authorJustin Tobler <redacted>
Fri, 10 Jul 2026 16:37:21 +0000 (11:37 -0500)
committerJunio C Hamano <redacted>
Fri, 10 Jul 2026 20:21:53 +0000 (13:21 -0700)
commit6c242569c190ec5c53b015d5284180b37f5b1542
tree4aadbd989b13ebcc42bda5091984744821a27375
parent48d730a16a6f02ca952f653cf70d8c0471137112
builtin/receive-pack: drop redundant tmpdir env

When performing the connectivity checks for a shallow ref in
`update_shallow_ref()`, the child process environment variables are
populated via `tmp_objdir_env()`. This is unnecessary though as
`update_shallow_ref()` is only reached after `tmp_objdir_migrate()` has
been performed which means there is no longer a temporary directory that
needs to be shared with child processes.

Drop the call to `tmp_objdir_env()` accordingly.

Signed-off-by: Justin Tobler <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/receive-pack.c
git clone https://git.99rst.org/PROJECT