You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/services
zeripath 6e4480835f
Fix issue with DiffIndex on initial commit (#11677)
Unfortunately #11614 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 #11650

Closes #11674

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