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
F19897130: D21759.id51871.diff
Sun, Mar 29, 6:34 AM
F19825545: D21759.id.diff
Mar 8 2026, 12:37 PM
F19794188: D21759.diff
Feb 26 2026, 6:37 PM
F19550502: D21759.diff
Jan 27 2026, 10:56 PM
F19543317: D21759.diff
Jan 22 2026, 6:09 PM
F19060754: D21759.id.diff
Nov 29 2025, 10:14 AM
F19054908: D21759.diff
Nov 28 2025, 3:10 PM
F18845177: D21759.id.diff
Oct 29 2025, 10:22 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.