diff --git a/SourceGitlab/SourceGitlab.php b/SourceGitlab/SourceGitlab.php index 0a5ed25..5a2da60 100644 --- a/SourceGitlab/SourceGitlab.php +++ b/SourceGitlab/SourceGitlab.php @@ -19,7 +19,7 @@ $this->name = plugin_lang_get( 'title' ); $this->description = plugin_lang_get( 'description' ); - $this->version = '1.0.1'; + $this->version = '1.0.2'; $this->requires = array( 'MantisCore' => '1.2.0', 'Source' => '0.16', @@ -231,7 +231,8 @@ $t_commits[] = $t_commit['id']; } - $t_refData = split( '/', $p_data['ref'] ); + # extract branch name 'refs/heads/issue/branch-description' => ['refs', 'heads', 'issue/branch-description'] + $t_refData = explode( '/', $p_data['ref'], 3 ); $t_branch = $t_refData[2]; return $this->import_commits( $p_repo, $t_commits, $t_branch );