diff --git a/SourceGithub/SourceGithub.php b/SourceGithub/SourceGithub.php index 0803644..5261d5c 100644 --- a/SourceGithub/SourceGithub.php +++ b/SourceGithub/SourceGithub.php @@ -210,7 +210,8 @@ $t_commits[] = $t_commit['id']; } - $t_branch = $p_data['ref_name']; + $t_refData = split('/',$p_data['ref']); + $t_branch = $t_refData[2]; return $this->import_commits( $p_repo, $t_commits, $t_branch ); }