Skip to content

Commit

Permalink
fix postinstall step
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 committed Sep 22, 2014
1 parent 5fbcac0 commit 25cce0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
build
vendor/*/build
deps/libgit2
.gitignore
.npmignore
TODO.md
.gitmodules
.travis.yml
.node-version
Cakefile
LIBGIT2_BUGS.md
test/
src/*.coffee
CHANGELOG.md
examples/
docs/
CHANGELOG.md
6 changes: 3 additions & 3 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function passthru() {
child.on("exit", cb);
}

var libgit2Dir = path.join(__dirname, "deps/libgit2");
var libgit2Dir = path.join(__dirname, "deps/libgit2/");

async.series([
function(cb) {
Expand All @@ -36,9 +36,9 @@ async.series([
console.log("[gitteh] ...via tarball");
var libgit2Version = "v0.19.0";
var url = "https://github.com/libgit2/libgit2/tarball/" + libgit2Version;
request.get(url).pipe(zlib.createUnzip()).pipe(tar.Extract({path: libgit2Dir})).on('end', cb);
request.get(url).pipe(zlib.createUnzip()).pipe(tar.Extract({path: libgit2Dir, strip: true})).on('end', cb);
}

}
], function(err) {
if(err) process.exit(err);
Expand Down

0 comments on commit 25cce0b

Please sign in to comment.