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)
Wed, May 1, 12:20 AM
Unknown Object (File)
Sun, Apr 28, 9:01 PM
Unknown Object (File)
Thu, Apr 4, 5:42 PM
Unknown Object (File)
Mar 26 2024, 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
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
Branch
httpfetch
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 10603
Build 13008: Run Core Tests
Build 13007: arc lint + arc unit

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.