Skip to content

Commit a20ed1f

Browse files
datrhiHieu Dang
and
Hieu Dang
authored
fix: Gitlab resolver (#3)
Co-authored-by: Hieu Dang <[email protected]>
1 parent 121db57 commit a20ed1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-host-info.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ gitHosts.gitlab = Object.assign({}, defaults, {
7676
domain: 'gitlab.com',
7777
treepath: 'tree',
7878
httpstemplate: ({ auth, domain, user, project, committish }) => `git+https://${maybeJoin(auth, '@')}${domain}/${user}/${project}.git${maybeJoin('#', committish)}`,
79-
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || 'master'}`,
79+
tarballtemplate: ({ domain, user, project, committish }) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?sha=${maybeEncode(committish) || 'master'}`,
8080
extract: (url) => {
8181
const path = url.pathname.slice(1)
8282
if (path.includes('/-/') || path.includes('/archive.tar.gz')) {

0 commit comments

Comments
 (0)