Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fe4cb28947
Fetching contributors…

Cannot retrieve contributors at this time

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