Page MenuHomePhabricator

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

Authored by epriestley on Apr 20 2022, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 3:15 AM
Unknown Object (File)
Mon, Dec 2, 10:51 PM
Unknown Object (File)
Sat, Nov 30, 11:06 AM
Unknown Object (File)
Tue, Nov 26, 6:01 PM
Unknown Object (File)
Thu, Nov 21, 7:28 PM
Unknown Object (File)
Mon, Nov 18, 8:30 AM
Unknown Object (File)
Wed, Nov 13, 10:37 PM
Unknown Object (File)
Mon, Nov 11, 3:59 AM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
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.