Page MenuHomePhabricator

Git ls-tree failure

Authored By
ftdysa
May 8 2015, 1:42 PM
Size
744 B
Referenced Files
None
Subscribers
None

Git ls-tree failure

<?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

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)

Event Timeline