Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15336669
D21523.id51236.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21523.id51236.diff
View Options
diff --git a/src/applications/repository/response/PhabricatorVCSResponse.php b/src/applications/repository/response/PhabricatorVCSResponse.php
--- a/src/applications/repository/response/PhabricatorVCSResponse.php
+++ b/src/applications/repository/response/PhabricatorVCSResponse.php
@@ -2,7 +2,9 @@
/**
* In Git, there appears to be no way to send a message which will be output
- * by `git clone http://...`, although the response code is visible.
+ * by `git clone http://...`, although the response code is visible. We send
+ * the message in a header which is visible with "GIT_CURL_VERBOSE" if you
+ * know where to look.
*
* In Mercurial, the HTTP status response message is printed to the console, so
* we send human-readable text there.
@@ -44,6 +46,16 @@
);
}
+ $message = $this->getMessage();
+ if (strlen($message)) {
+ foreach (phutil_split_lines($message, false) as $line) {
+ $headers[] = array(
+ 'X-Phabricator-Message',
+ $line,
+ );
+ }
+ }
+
return $headers;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 9, 8:51 PM (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7391582
Default Alt Text
D21523.id51236.diff (1 KB)
Attached To
Mode
D21523: Return Git HTTP error messages in an HTTP header
Attached
Detach File
Event Timeline
Log In to Comment