Test diff(HEAD) blows up when no commits