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

19 lines (17 sloc) 0.497 kb
--TEST--
Check for Git2\Commit::getCommitter
--SKIPIF--
<?php if (!extension_loaded("git2")) print "skip"; ?>
--FILE--
<?php
date_default_timezone_set('Asia/Tokyo');
$path2 = __DIR__ . '/mock/008-02';
$repo = new Git2\Repository($path2);
$commit = $repo->lookup("6e20138dc38f9f626107f1cd3ef0f9838c43defe");
$parent = $commit->getParent();
var_dump($parent->getOid());
var_dump($parent->getMessage());
--EXPECT--
string(40) "9bb8c853c9ea27609a6bdc48b78cd26a320daf7d"
string(16) "added section 1
"
Jump to Line
Something went wrong with that request. Please try again.