Skip to content

Commit bb355bd

Browse files
committed
argh
1 parent 06be4ac commit bb355bd

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

verify_commit_messages/check_amos.php

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,3 @@
8585
];
8686

8787
var_dump($commitmessagecmd);
88-
89-
90-
exec(join(" ", $commitmessagecmd), $output, $returncode);
91-
92-
if ($returncode !== 0) {
93-
cli_error("Error running git show command: " . implode("\n", $output));
94-
}
95-
$message = join("\n", $output);
96-
97-
$filelistcmd = [
98-
escapeshellcmd($options['git']),
99-
"diff-tree",
100-
"--no-commit-id",
101-
"--name-only",
102-
"-r",
103-
escapeshellarg($COMMIT),
104-
];
105-
106-
exec(join(" ", $filelistcmd), $output, $returncode);
107-
if ($returncode !== 0) {
108-
cli_error("Error running git diff-tree command: " . implode("\n", $output));
109-
}
110-
$filesmodified = join(",", $output);
111-
112-
$returncode = amos_script_parser::validate_commit_message($message, $filesmodified);
113-
exit($returncode);

0 commit comments

Comments
 (0)