Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fe4cb28947
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.304 kB
--TEST--
Check for Git2\Repository::headOrphan
--SKIPIF--
<?php if (!extension_loaded("git2")) print "skip"; ?>
--FILE--
<?php
$path = __DIR__ . "/mock/001-08/orphaned";
$repo = new Git2\Repository($path);
if ($repo->headOrphan()) {
echo "OK" . PHP_EOL;
} else {
echo "FAIL" . PHP_EOL;
}
--EXPECT--
OK
Jump to Line
Something went wrong with that request. Please try again.