Page MenuHomePhabricator

Use passthru to run `git fetch` in `arc land` so password prompts work
ClosedPublic

Authored by epriestley on Feb 10 2016, 2:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 5:42 PM
Unknown Object (File)
Tue, Mar 26, 5:58 PM
Unknown Object (File)
Mar 15 2024, 10:05 PM
Unknown Object (File)
Mar 5 2024, 3:57 PM
Unknown Object (File)
Mar 5 2024, 1:49 PM
Unknown Object (File)
Mar 5 2024, 1:49 PM
Unknown Object (File)
Mar 5 2024, 1:49 PM
Unknown Object (File)
Jan 19 2024, 8:14 PM
Subscribers

Details

Summary

Fixes T10314. In arc land, we currently run git fetch as a subprocess.

However, this can prevent password prompts (when fetching over HTTP with basic authentication) from working properly.

Instead, use passthru to redirect stdin/stdout to the subprocess so the user can type their password.

This adds a little extra clutter to the arc land output but I think that's OK.

Test Plan

See T10314, @maxie confirmed this fixes the issue.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Use passthru to run `git fetch` in `arc land` so password prompts work.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
epriestley added a subscriber: maxie.
chad edited edge metadata.
This revision is now accepted and ready to land.Feb 10 2016, 3:03 PM
This revision was automatically updated to reflect the committed changes.