From 2c46c4523fc8aa41cb60e4840af16fdd595f7dd2 Mon Sep 17 00:00:00 2001 From: Vinnie Okada Date: Thu, 2 Oct 2014 13:26:39 -0500 Subject: Track projects in ReferenceExtractor Store both the project and identifier of extracted references. This prevents `ReferenceExtractor` from returning objects in the wrong project for cross-project references. --- lib/gitlab/closing_issue_extractor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab/closing_issue_extractor.rb') diff --git a/lib/gitlab/closing_issue_extractor.rb b/lib/gitlab/closing_issue_extractor.rb index 90f1370c209..401e6e047b1 100644 --- a/lib/gitlab/closing_issue_extractor.rb +++ b/lib/gitlab/closing_issue_extractor.rb @@ -6,7 +6,7 @@ module Gitlab md = ISSUE_CLOSING_REGEX.match(message) if md extractor = Gitlab::ReferenceExtractor.new - extractor.analyze(md[0]) + extractor.analyze(md[0], project) extractor.issues_for(project) else [] -- cgit v1.2.3