Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15200746
D15233.id36761.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
878 B
Referenced Files
None
Subscribers
None
D15233.id36761.diff
View Options
diff --git a/src/land/ArcanistGitLandEngine.php b/src/land/ArcanistGitLandEngine.php
--- a/src/land/ArcanistGitLandEngine.php
+++ b/src/land/ArcanistGitLandEngine.php
@@ -128,10 +128,22 @@
pht('FETCH'),
pht('Fetching %s...', $ref));
- $api->execxLocal(
+ // NOTE: Although this output isn't hugely useful, we need to passthru
+ // instead of using a subprocess here because `git fetch` may prompt the
+ // user to enter a password if they're fetching over HTTP with basic
+ // authentication. See T10314.
+
+ $err = $api->execPassthru(
'fetch -- %s %s',
$this->getTargetRemote(),
$this->getTargetOnto());
+
+ if ($err) {
+ throw new ArcanistUsageException(
+ pht(
+ 'Fetch failed! Fix the error and run "%s" again.',
+ 'arc land'));
+ }
}
private function updateWorkingCopy() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 24, 2:41 PM (14 h, 22 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7187365
Default Alt Text
D15233.id36761.diff (878 B)
Attached To
Mode
D15233: Use passthru to run `git fetch` in `arc land` so password prompts work
Attached
Detach File
Event Timeline
Log In to Comment