Skip to content

Commit 72cfa55

Browse files
Merge pull request #1 from Dalee/multiple-gitlab-fix
fix multiple gitlab support (multiscope)
2 parents 1f16868 + cc2f765 commit 72cfa55

File tree

6 files changed

+240
-122
lines changed

6 files changed

+240
-122
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ templates-release:
2121
-prefix "bindata" \
2222
bindata/...
2323

24-
test:
24+
test: templates-debug
2525
ineffassign ./
2626
misspell -error README.md ./pkg/**/*
2727
gofmt -d -s -e ./pkg/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ ExecStart=/usr/bin/docker run --rm --name %n \
107107
-e "GITLAB_FILE_NAMESPACE=acme" \
108108
-e "GITLAB_REPO_FILE_EXTRA_LIST=composerList.json,npmList.json" \
109109
-p 8080:4000 \
110-
dalee/comrade-pavlik2:1.0.2
110+
dalee/comrade-pavlik2:1.0.3
111111
112112
[Install]
113113
WantedBy=multi-user.target
114114
```
115-
> Please check image version, stable version is >= 1.0.2
115+
> Please check image version, stable version is >= 1.0.3
116116
117117
### Project setup
118118

pkg/client/gitlab/client_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (c *Client) GetTagList(project *Project) ([]*Tag, error) {
8585
//
8686
func (c *Client) GetArchive(project *Project, ref string) ([]byte, error) {
8787
endpoint := fmt.Sprintf(
88-
"projects/%d/repository/archive?sha=%s",
88+
"projects/%d/repository/archive.tar.gz?ref=%s",
8989
project.ID,
9090
url.QueryEscape(ref),
9191
)

0 commit comments

Comments
 (0)