Skip to content

Use empty tree if initial commit

John Cai requested to merge jc-check-for-first-commit into master

There's a bug where if the first commit id is called in commit stats, an error is returned because first commit^ doesn't exist.

This MR detects that case, and uses the empty tree sha to get the diff

Merge request reports