diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2014-10-02 22:26:39 +0400 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2014-10-03 21:30:20 +0400 |
commit | 2c46c4523fc8aa41cb60e4840af16fdd595f7dd2 (patch) | |
tree | b178ae204f78e40aff7611b70a3a025f6e7befa9 /lib/gitlab/closing_issue_extractor.rb | |
parent | 7edc1439fe11e396bb6327a3f50aca5dfe3c411c (diff) |
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.
Diffstat (limited to 'lib/gitlab/closing_issue_extractor.rb')
-rw-r--r-- | lib/gitlab/closing_issue_extractor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 [] |