about summary refs log tree commit diff
path: root/gerrit/client.go
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-12-02T13·38+0100
committerFlorian Klink <flokli@flokli.de>2019-12-02T13·38+0100
commit0e8aa14045ea9873e7b4aa7aadb1d4da2e54193a (patch)
tree1edce6f71da0f2b392bc4835b2e1b77ed1c49a99 /gerrit/client.go
parent8129de3b9a932580178e56acdc5730b8d6fcf0a5 (diff)
gerrit.Client: set projectName and branchName
Diffstat (limited to 'gerrit/client.go')
-rw-r--r--gerrit/client.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/gerrit/client.go b/gerrit/client.go
index fd8a244151ab..6197b0338e99 100644
--- a/gerrit/client.go
+++ b/gerrit/client.go
@@ -58,9 +58,11 @@ func NewClient(logger *log.Logger, URL, username, password, projectName, branchN
 		return nil, err
 	}
 	return &Client{
-		client:  goGerritClient,
-		baseURL: URL,
-		logger:  logger,
+		client:      goGerritClient,
+		baseURL:     URL,
+		logger:      logger,
+		projectName: projectName,
+		branchName:  branchName,
 	}, nil
 }