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)
Sat, Apr 20, 5:50 PM
Unknown Object (File)
Thu, Apr 11, 10:02 AM
Unknown Object (File)
Tue, Apr 9, 6:40 PM
Unknown Object (File)
Tue, Apr 9, 6:23 AM
Unknown Object (File)
Sun, Apr 7, 2:44 PM
Unknown Object (File)
Wed, Apr 3, 12:48 PM
Unknown Object (File)
Wed, Apr 3, 12:48 PM
Unknown Object (File)
Sun, Mar 31, 7:36 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
Branch
sub1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25644
Build 35472: arc lint + arc unit

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.