File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 8585];
8686
8787var_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 );
You can’t perform that action at this time.
0 commit comments