]> source.dussan.org Git - gitea.git/commit
Fix panic bug in handling multiple references in commit (#13486)
authorzeripath <art27@cantab.net>
Mon, 9 Nov 2020 22:57:47 +0000 (22:57 +0000)
committerGitHub <noreply@github.com>
Mon, 9 Nov 2020 22:57:47 +0000 (00:57 +0200)
commit77e5081a2e3aaf1b60033e04fbe2c82e2f918d69
treea60d9ebf407ea29dd32ac048403e31826999b764
parentffa712e783ffbb4b3a79ca79c55dac5fde384e22
Fix panic bug in handling multiple references in commit (#13486)

* Fix panic bug in handling multiple references in commit

The issue lay in determining the position of matches on a second run round
a commit message in FindAllIssueReferences.

Fix #13483

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Extract function and make testable

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix the comment

Signed-off-by: Andrew Thornton <art27@cantab.net>
* cleaning up the comments a bit more

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/references/references.go
modules/references/references_test.go