]> source.dussan.org Git - gitea.git/commit
Fix initial commit page & binary munching problem (#13249) (#13258)
authorzeripath <art27@cantab.net>
Thu, 22 Oct 2020 12:59:01 +0000 (13:59 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 12:59:01 +0000 (13:59 +0100)
commitd51c574350d97057c7f75c936e6b120a2f4089ed
treec5101e134ab67d157fa7cd212bbb878d96bec54e
parent52d333f0841be774b5ed116cd75434814bc09957
Fix initial commit page & binary munching problem (#13249) (#13258)

Backport #13249

* Fix initial commit page

Unfortunately as a result of properly fixing ParsePatch the hack that
used git show <initial_commit_id> to get the diff for this failed.

This PR fixes this using the "super-secret" empty tree ref to make the
diff against.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Also fix #13248

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update services/gitdiff/gitdiff.go

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: 6543 <6543@obermui.de>
services/gitdiff/gitdiff.go