File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -771,9 +771,6 @@ public static function getFileFromGit($path, $rev) {
771
771
772
772
public static function getCommitBody ($ hash ) {
773
773
$ output = shell_exec ("git log $ hash --max-count=1 --pretty=format: \"%b \"" );
774
- if ($ output === null ) {
775
- throw new Exception ("could not get commit body " );
776
- }
777
774
return $ output ;
778
775
}
779
776
@@ -825,10 +822,10 @@ public static function compareCommits($a, $b) {
825
822
return 1 ;
826
823
}
827
824
828
- // then compare message
829
- if ($ a ->message < $ b ->message ) {
825
+ // then compare subject
826
+ if ($ a ->subject < $ b ->subject ) {
830
827
return -1 ;
831
- } else if ($ a ->message > $ b ->message ) {
828
+ } else if ($ a ->subject > $ b ->subject ) {
832
829
return 1 ;
833
830
}
834
831
@@ -977,7 +974,7 @@ public static function buildLogLine($commit, $remote) {
977
974
}
978
975
$ hash = $ commit ->hash ;
979
976
$ line .= " $ commit ->subject "
980
- . "([ $ hash]( $ remote/commit/ $ hash)) " ;
977
+ . " ([$ hash]( $ remote/commit/ $ hash)) " ;
981
978
982
979
// Search for closed issues
983
980
$ body = explode (PHP_EOL , $ commit ->body );
You can’t perform that action at this time.
0 commit comments