aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2022-03-10 18:51:32 +0100
committerGitHub <noreply@github.com>2022-03-10 18:51:32 +0100
commitcac20c8c4dc9524773c1296165fe596cb9035202 (patch)
tree30ee10354bb6d050333e3c15561d5437e8a2c45c
parent1d12021ca084dddd4a4821008c30063075e5b2ae (diff)
parent6f1128245158d70019bb1471f1c2d5d352b5f1c9 (diff)
downloadgit-bug-cac20c8c4dc9524773c1296165fe596cb9035202.tar.gz
Merge pull request #766 from MichaelMure/jira-fix
jira: fix incorrect client creation reusing the same credential
-rw-r--r--bridge/jira/export.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/jira/export.go b/bridge/jira/export.go
index 34f41d09..e5c19074 100644
--- a/bridge/jira/export.go
+++ b/bridge/jira/export.go
@@ -110,7 +110,7 @@ func (je *jiraExporter) cacheAllClient(ctx context.Context, repo *cache.RepoCach
}
if _, ok := je.identityClient[user.Id()]; !ok {
- client, err := buildClient(ctx, je.conf[confKeyBaseUrl], je.conf[confKeyCredentialType], creds[0])
+ client, err := buildClient(ctx, je.conf[confKeyBaseUrl], je.conf[confKeyCredentialType], cred)
if err != nil {
return err
}