Take into account if in one branch but listing another.

Need to check how this is working on a bar repository.
This commit is contained in:
Loic d'Anterroches
2008-07-27 01:51:08 +02:00
parent c915f8fccf
commit 789c7ed43d
2 changed files with 18 additions and 9 deletions

View File

@@ -69,9 +69,11 @@ class IDF_Git
$cmd = sprintf('GIT_DIR=%s git-ls-tree -t -l %s', $this->repo, $base->hash);
exec($cmd, &$out);
$rawlog = array();
$cmd = sprintf('GIT_DIR=%s git log --raw --abbrev=40 --pretty=oneline',
$this->repo);
exec($cmd, &$rawlog);
foreach ($this->getBranches() as $br) {
$cmd = sprintf('GIT_DIR=%s git log --raw --abbrev=40 --pretty=oneline %s',
$this->repo, $br);
exec($cmd, &$rawlog);
}
$rawlog = implode("\n", array_reverse($rawlog));
$current_dir = getcwd();
chdir(substr($this->repo, 0, -5));
@@ -193,6 +195,7 @@ class IDF_Git
escapeshellarg($this->repo), $n, $format, $tree);
$out = array();
exec($cmd, &$out);
//print_r($cmd);
return self::parseLog($out, 4);
}