Skip to content

Commit 1708a72

Browse files
committed
Use tar instead of adm-zip
1 parent abd9d4b commit 1708a72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

install.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ var checkoutDependencies = function(mainCallback) {
5050
var commit = 'e953c1606d0d7aea680c9b19db0b955b34ae63c2';
5151

5252
var url = 'https://github.com/libgit2/libgit2/tarball/'+ commit;
53-
var path = __dirname + '/vendor/libgit2-' + commit;
53+
var path = __dirname + '/vendor/libgit2/';
5454
request({
5555
url: url
5656
}).pipe(zlib.createUnzip()).pipe(tar.Extract({
57-
path: path
57+
path: path,
58+
strip: true
5859
})).on('end', function() {
5960
mainCallback();
6061
});

0 commit comments

Comments
 (0)