Skip to content

Commit 2a0e94b

Browse files
committed
Merge pull request #31 from boecko/cgit_fixes
Cgit fixes
2 parents a9e091d + 617726d commit 2a0e94b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎SourceCgit/SourceCgit.php‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ public function commit( $p_repo, $p_data ) {
131131
# i.e. DATA=`echo $INPUT | sed -e 's/ /+/g'`
132132
list ( , $t_commit_id, $t_branch) = split(' ', $p_data);
133133
list ( , , $t_branch) = split('/', $t_branch);
134-
if ($t_branch != $p_repo->info['master_branch'])
134+
$master_branches = map( 'trim', explode( ',', $p_repo->info['master_branch']));
135+
if (!in_array($t_branch,$master_branches) )
135136
{
136137
return;
137138
}
@@ -352,7 +353,7 @@ private function commit_changeset( $p_repo, $p_input, $p_branch='' ) {
352353
$t_commit['date'], $t_commit['author'], $t_commit['message'], 0,
353354
( isset( $t_commit['parent'] ) ? $t_commit['parent'] : '' ) );
354355

355-
$t_changeset->author_email = $t_commit['author'];
356+
$t_changeset->author_email = $t_commit['author_email'];
356357
$t_changeset->committer = $t_commit['committer'];
357358
$t_changeset->committer_email = $t_commit['committer_email'];
358359

0 commit comments

Comments
 (0)