0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-15 18:48:24 -05:00
forgejo/services/gitdiff
hiifong ae51a90181
Fix parentCommit invalid memory address or nil pointer dereference. (#33204)
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
csv.go
csv_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
gitdiff.go Fix parentCommit invalid memory address or nil pointer dereference. (#33204) 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 (#4749) 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