forgejo/modules
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>
2020-05-29 22:14:00 +01:00
..
analyze
auth
avatar
base
cache
charset
context
convert
cron
emoji
eventsource
generate
git Fix issue with DiffIndex on initial commit (#11677) 2020-05-29 22:14:00 +01:00
gitgraph
graceful
highlight
httplib
indexer
lfs
log
markup
metrics
migrations
notification
options
password
pprof
private
process
public
queue
recaptcha
references
repofiles
repository Add API Endpoint for Branch Creation (#11607) 2020-05-29 19:16:20 +01:00
secret
session
setting
ssh
structs Add API Endpoint for Branch Creation (#11607) 2020-05-29 19:16:20 +01:00
sync
task
templates
test
timeutil
upload
user
util
validation
webhook