Skip to content

Commit

Permalink
fixes #13: If not using HEAD, tag on origin/ to the current branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsqd committed Jul 31, 2024
1 parent 032bfed commit a4ed823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Robo/Plugin/Commands/ValidateCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ public function validateCommitMessages(
return new ResultData(ResultData::EXITCODE_ERROR);
}
var_dump('CURRENT BRANCH:');
if ($current_branch !== 'HEAD') {
$current_branch = "$git_remote/$current_branch";
}
var_dump($current_branch);
$git_command = "git log $git_remote/$target_branch...$current_branch --pretty=format:%s --no-merges";
exec($git_command, $output, $result_code);
Expand Down

0 comments on commit a4ed823

Please sign in to comment.