Server error when opening PRs on repositories with Git submodules #3354

Closed
opened 2025-11-02 05:09:39 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @saitho on GitHub (May 19, 2019).

Description

Comparing branches where a submodule was modified causes a server error.

template: repo/diff/box:109:21: executing "repo/diff/box" at <call $.IsImageFile $file.Name>: error calling call: runtime error: invalid memory address or nil pointer dereference

Originally created by @saitho on GitHub (May 19, 2019). - Gitea version (or commit ref): master - Database (use `[x]`): - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes: https://try.gitea.io/saitho/test2/compare/noimage...submodule2 ## Description Comparing branches where a submodule was modified causes a server error. > template: repo/diff/box:109:21: executing "repo/diff/box" at <call $.IsImageFile $file.Name>: error calling call: runtime error: invalid memory address or nil pointer dereference
Author
Owner

@saitho commented on GitHub (May 19, 2019):

Duplicate of #6945

@saitho commented on GitHub (May 19, 2019): Duplicate of #6945
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3354