Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15485790
D19513.id46664.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
522 B
Referenced Files
None
Subscribers
None
D19513.id46664.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 11, 2:26 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7683706
Default Alt Text
D19513.id46664.diff (522 B)
Attached To
Mode
D19513: Fix `arc diff` when adding large new file with new git
Attached
Detach File
Event Timeline
Log In to Comment