Page MenuHomePhabricator

D21523.id51236.diff
No OneTemporary

D21523.id51236.diff

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

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)

Event Timeline