-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
Hi.
I use Gitea 1.13.2 on top of PostgreSQL.
A comment on a pull request including an Oracle pl/sql file with "--" comments results in something like this in DB in comment.patch:
diff --git a/sql/FUND/PACKAGES/CORRECTIONS.pkb b/sql/FUND/PACKAGES/CORRECTIONS.pkb
--- a/sql/FUND/PACKAGES/CORRECTIONS.pkb
+++ b/sql/FUND/PACKAGES/CORRECTIONS.pkb
--- some comment
--- some other comment
@@ -2061,839 +2119,733 @@
END LOOP;
IF gv_test_type THEN
- Dr.begin ('Debit correction summary');
+ dr.begin ('Debit correction summary');
@@ -2703,0 +2522,4 @@
+ l_register,
+ v_hssr,
+ vt_events (i_zd).oper_type,
+ correction_cost.GC_ALG_PERC_SUM_BR_M, -- TODO
What happens next is that presumably the pulls panel treats the two "some comment" lines like the file locations above it and tries to link to them. The effect:
template: repo/issue/view_content/comments:470:20: executing "repo/issue/view_content/comments" at <CommentMustAsDiff (index $comms 0)>: error calling CommentMustAsDiff: runtime error: invalid memory address or nil pointer dereference
Manual removal of the two lines results in the pull request displayed properly.
Please check.