Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F396485
Git ls-tree failure
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
ftdysa
May 8 2015, 1:42 PM
2015-05-08 13:42:31 (UTC+0)
Size
744 B
Referenced Files
None
Subscribers
None
Git ls-tree failure
View Options
<?php
$descriptorspec
=
array
(
0
=>
array
(
"pipe"
,
"r"
),
1
=>
array
(
"pipe"
,
"w"
),
2
=>
array
(
"pipe"
,
"w"
)
);
$process
=
proc_open
(
"git ls-tree --name-only -r -z '47a20d076e292a34393def481663fcad69e1b6be' -- ''"
,
$descriptorspec
,
$pipes
,
'/web/sites/phabricator/repo/PP/'
);
$content
=
stream_get_contents
(
$pipes
[
1
]);
$errors
=
stream_get_contents
(
$pipes
[
2
]);
$return_code
=
proc_close
(
$process
);
var_dump
(
$content
)
// output from git ls-tree
var_dump
(
$errors
);
// "" empty string
var_dump
(
$return_code
);
// -1
$cmd
=
"cd /web/sites/phabricator/repo/PP/ && git ls-tree --name-only -r -z '47a20d076e292a34393def481663fcad69e1b6be' -- ''"
;
exec
(
$cmd
,
$output
,
$ret
);
var_dump
(
$output
);
// same output as above
var_dump
(
$ret
);
// 0
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/3f/b4/oz36palvvy7vgr3c
Default Alt Text
Git ls-tree failure (744 B)
Attached To
Mode
P1777 Git ls-tree failure
Attached
Detach File
Event Timeline
Log In to Comment