Homestyx hydra
Diffusion hydra 52df4ff515b7

Fix an issue where "git" may be unable to read a temporary file in Diffusion

Description

Fix an issue where "git" may be unable to read a temporary file in Diffusion

Summary:
Ref T13673. After the changes in that task, we may execute "git config -l ..." as a user other than the user we used to write this temporary file.

Use "--file -" to pass the data instead, avoiding use of temporary files. This makes us agnostic to filesystem permissions.

Test Plan: Viewed a Git repository with submodules in Diffusion with "ssh.user" configured as a user relatively isolated from the webserver user.

Maniphest Tasks: T13673

Differential Revision: https://secure.phabricator.com/D21759

Details

Provenance
epriestleyAuthored on Apr 20 2022, 12:29 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:21b1a304b60a: Improve some PHP 8.1 behavior in "bin/auth recover"
Branches
Unknown
Tags
Unknown

Event Timeline