X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=blobdiff_plain;f=htdocs%2Flib%2FGitCommand.class.php;fp=htdocs%2Flib%2FGitCommand.class.php;h=1e4b07f6b4c29e4001c22e2bc2031804ea7809ee;hp=a8ede915817beaafc0e070ddcb8027248bd8ae2a;hb=b400fe63ce2c5db919a479101e8b261f479e8d0b;hpb=cdf14cc9d75eb1919d8730c33b2921a0112e5c23 diff --git a/htdocs/lib/GitCommand.class.php b/htdocs/lib/GitCommand.class.php index a8ede91..1e4b07f 100644 --- a/htdocs/lib/GitCommand.class.php +++ b/htdocs/lib/GitCommand.class.php @@ -124,7 +124,7 @@ class GitCommand { } public static function get_commit($git_path, $commit_id) { - $args = array("rev-list", "--header", "--max-count=1", $commit_id, "--"); + $args = array("rev-list", "--header", "--max-count=1", ($commit_id ? $commit_id : "--all"), "--"); $commit_data = self::git_execute($args, $git_path); $commit = self::parse_commit($commit_data); return $commit;