gitea/services
zeripath 6e4480835f
Fix issue with DiffIndex on initial commit ()
Unfortunately  introduced a bug whereby the initial commit of a
repository could not be seen due to there being no parent commit to
create a clear diff from.

Here we create a diffstat from the difference between the parentless SHA and the SHA of the empty tree - a constant known to git. (With thanks to @L0veSunshine for informing me of this SHA)

Thanks to @a1012112796 for initial attempt to fix.

Fix 

Closes 

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-Authored-By: L0veSunshine <xuan199651@gmail.com>
..
comments Refactor pull request review ()
externalaccount Allow externalID to be UUID ()
gitdiff Fix issue with DiffIndex on initial commit ()
issue Fix ref links in issue overviews for tags ()
mailer Add push commits history comment on PR time-line ()
mirror Refactor Cron and merge dashboard tasks ()
pull Add push commits history comment on PR time-line ()
release When using API CreateRelease set created_unix to the tag commit time ()
repository API endpoint for repo transfer ()
wiki Handle push rejection in branch and upload ()