1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-03-17 17:22:44 +00:00
forgejo/services/gitdiff
hiifong ae51a90181
Fix parentCommit invalid memory address or nil pointer dereference. ()
When the parent Commit does not exist on gitea, an error will be
reported when opening the Commit details page: invalid memory address or
nil pointer dereference.

![image](https://github.com/user-attachments/assets/4c2a9802-935f-41e9-b5b9-a4f0d745f709)

![image](https://github.com/user-attachments/assets/7b0bc15e-7f5f-4d58-8d24-fee667a799fa)

(cherry picked from commit b7614e2d2f2af246e33b8bd6a38ecfd1babc9ecc)
2025-01-19 11:52:09 +01:00
..
testdata/academic-module rm .sample hooks which aren't used () 2022-03-16 10:33:07 +00:00
csv.go Use Go 1.21 and update dependencies () 2023-09-03 10:34:57 +00:00
csv_test.go Add testifylint to lint checks () 2024-07-30 19:41:10 +00:00
gitdiff.go Fix parentCommit invalid memory address or nil pointer dereference. () 2025-01-19 11:52:09 +01:00
gitdiff_test.go Fix linting issues 2024-08-18 16:25:13 +02:00
highlightdiff.go feat: Improve diff being generated 2024-08-26 13:58:17 +02:00
highlightdiff_test.go feat: highlighted code search results () 2024-08-06 05:57:25 +00:00
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00