Skip to content
Browse files

Added configure option for gitteh, --use-bundled-libgit2, which will

use the git submodule/included libgit2 in NPM. Forcing npm install to
use bundled libgit2, since it's updating so often.
  • Loading branch information...
1 parent 858b480 commit ff811a4686dc51b410e563f5c21b5d97cb5f0a69 @samcday samcday committed
Showing with 7 additions and 2 deletions.
  1. +1 −1 package.json
  2. +6 −1 wscript
View
2 package.json
@@ -15,7 +15,7 @@
"url" : "https://github.com/samcday/node-gitteh.git"
},
"scripts": {
- "preinstall": "node-waf configure",
+ "preinstall": "node-waf configure --use-bundled-libgit2",
"install": "node-waf build",
"test": "vows test/*.test.js --spec"
},
View
7 wscript
@@ -15,10 +15,15 @@ def set_options(opt):
default = False,
help = "Compile gitteh and libgit2 (if using bundled version) with debug flags.")
+ opt.add_option("--use-bundled-libgit2",
+ action = "store_true",
+ default = False,
+ help = "Don't use libgit2 installed on system, configure and compile an internal copy instead.")
+
def configure_libgit2(ctx):
o = Options.options
- if not ctx.check(lib = "git2", uselib_store = "GIT2"):
+ if o.use_bundled_libgit2 or not ctx.check(lib = "git2", uselib_store = "GIT2"):
# Checkout libgit2 submodule if it isn't already.
if exists(".git"):
if not exists("vendor/libgit2") or not os.listdir("vendor/libgit2"):

0 comments on commit ff811a4

Please sign in to comment.
Something went wrong with that request. Please try again.