Page MenuHomePhabricator

D19513.diff
No OneTemporary

D19513.diff

diff --git a/src/repository/api/ArcanistGitAPI.php b/src/repository/api/ArcanistGitAPI.php
--- a/src/repository/api/ArcanistGitAPI.php
+++ b/src/repository/api/ArcanistGitAPI.php
@@ -1032,6 +1032,11 @@
// and treat it as though it as a file containing a list of other files,
// which is silly.
+ if (!strlen($path)) {
+ // No filename, so there's no content (Probably new/deleted file).
+ return null;
+ }
+
list($stdout) = $this->execxLocal(
'ls-tree %s -- %s',
$revision,

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 8:22 PM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6276691
Default Alt Text
D19513.diff (522 B)

Event Timeline