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
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
F18842358: D21759.diff
Oct 28 2025, 3:20 PM
F18834714: D21759.id.diff
Oct 26 2025, 10:21 AM
F18788155: D21759.id51879.diff
Oct 15 2025, 3:08 AM
F18697840: D21759.id.diff
Sep 27 2025, 10:29 AM
F18688142: D21759.diff
Sep 26 2025, 4:01 PM
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.