Skip to content

Commit

Permalink
Connects to #2582: Disabling BLT commit message.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Feb 27, 2018
1 parent bbbb076 commit 8459b6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Robo/Commands/Git/GitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class GitCommand extends BltTasks {
public function commitMsgHook($message) {
$this->say('Validating commit message syntax...');
$pattern = $this->getConfigValue('git.commit-msg.pattern');
$this->logger->debug("Validing commit message with regex $pattern.");
if (!preg_match($pattern, $message)) {
$this->logger->error("Invalid commit message!");
$this->say("Commit messages must conform to the regex $pattern");
Expand Down

0 comments on commit 8459b6f

Please sign in to comment.