Skip to content
This repository

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

file 19 lines (17 sloc) 0.497 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
--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
"
Something went wrong with that request. Please try again.