File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ var gitHosts = module.exports = {
42
42
'httpstemplate' : 'git+https://{domain}/{project}.git{#committish}' ,
43
43
'shortcuttemplate' : '{type}:{project}{#committish}' ,
44
44
'pathtemplate' : '{project}{#committish}' ,
45
- 'tarballtemplate' : 'https://{domain}/{user} /{project}/archive /{committish}.tar.gz ' ,
45
+ 'tarballtemplate' : 'https://codeload.github.com/gist /{project}/tar.gz /{committish}' ,
46
46
'hashformat' : function ( fragment ) {
47
47
return 'file-' + formatHashFragment ( fragment )
48
48
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ test('fromUrl(gist url)', function (t) {
25
25
t . is ( hostinfo . file ( '' ) , 'https://gist.githubusercontent.com/111/' + proj + '/raw/' + ( branch ? branch + '/' : '' ) , label + ' -> file' )
26
26
t . is ( hostinfo . file ( 'C' ) , 'https://gist.githubusercontent.com/111/' + proj + '/raw/' + ( branch ? branch + '/' : '' ) + 'C' , label + ' -> file' )
27
27
t . is ( hostinfo . file ( 'C/D' ) , 'https://gist.githubusercontent.com/111/' + proj + '/raw/' + ( branch ? branch + '/' : '' ) + 'C/D' , label + ' -> file' )
28
- t . is ( hostinfo . tarball ( ) , 'https://gist .github.com/111 /' + proj + '/archive /' + ( branch || 'master' ) + '.tar.gz' , label + ' -> tarball' )
28
+ t . is ( hostinfo . tarball ( ) , 'https://codeload .github.com/gist /' + proj + '/tar.gz /' + ( branch || 'master' ) , label + ' -> tarball' )
29
29
}
30
30
}
31
31
You can’t perform that action at this time.
0 commit comments