Page MenuHomePhabricator

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

Authored by epriestley on Apr 20 2022, 4:31 PM.
Referenced Files
Unknown Object (File)
Wed, Dec 6, 12:20 AM
Unknown Object (File)
Sun, Dec 3, 5:37 AM
Unknown Object (File)
Sun, Dec 3, 4:15 AM
Unknown Object (File)
Wed, Nov 29, 11:13 PM
Unknown Object (File)
Sun, Nov 26, 1:01 AM
Unknown Object (File)
Sun, Nov 26, 1:00 AM
Unknown Object (File)
Sun, Nov 26, 1:00 AM
Unknown Object (File)
Fri, Nov 24, 8:11 PM



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.

Diff Detail

rP Phabricator
Lint Not Applicable
Tests Not Applicable

Event Timeline

epriestley created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Apr 20 2022, 8:04 PM
This revision was automatically updated to reflect the committed changes.