aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorMatthias Simon <matthias.simon@nokia.com>2021-02-07 17:01:59 +0100
committerMatthias Simon <matthias.simon@nokia.com>2021-02-07 17:01:59 +0100
commit34e6f3c2248583e10e3b5ab83df42f1de7005c18 (patch)
treee0532e06a96d83c1c47fcb562c33fb5ab13054e0 /bridge
parentc5313bd4f2c2d87e8116d15d73bf9bd83b654e3c (diff)
downloadgit-bug-34e6f3c2248583e10e3b5ab83df42f1de7005c18.tar.gz
Fix comparison mix-up in gitlab importer
Diffstat (limited to 'bridge')
-rw-r--r--bridge/gitlab/import.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go
index 897d65de..cf4f0039 100644
--- a/bridge/gitlab/import.go
+++ b/bridge/gitlab/import.go
@@ -127,8 +127,8 @@ func (gi *gitlabImporter) ensureIssue(repo *cache.RepoCache, issue *gitlab.Issue
b, err := repo.ResolveBugMatcher(func(excerpt *cache.BugExcerpt) bool {
return excerpt.CreateMetadata[core.MetaKeyOrigin] == target &&
excerpt.CreateMetadata[metaKeyGitlabId] == parseID(issue.IID) &&
- excerpt.CreateMetadata[metaKeyGitlabBaseUrl] == gi.conf[confKeyProjectID] &&
- excerpt.CreateMetadata[metaKeyGitlabProject] == gi.conf[confKeyGitlabBaseUrl]
+ excerpt.CreateMetadata[metaKeyGitlabBaseUrl] == gi.conf[confKeyGitlabBaseUrl] &&
+ excerpt.CreateMetadata[metaKeyGitlabProject] == gi.conf[confKeyProjectID]
})
if err == nil {
return b, nil