Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use `npm` to install `nodeunit` and `rimraf`

Remove submodules, change paths when requiring these modules and fix
errors in `test/index.js`.
  • Loading branch information...
commit db937576bde4d31726e92955cbc3d5baf2254fac 1 parent f82b9d9
@mmalecki mmalecki authored
View
6 .gitmodules
@@ -1,9 +1,3 @@
-[submodule "vendor/nodeunit"]
- path = vendor/nodeunit
- url = git://github.com/caolan/nodeunit.git
-[submodule "vendor/rimraf"]
- path = vendor/rimraf
- url = git://github.com/isaacs/rimraf.git
[submodule "vendor/libgit2"]
path = vendor/libgit2
url = git://github.com/libgit2/libgit2.git
View
4 package.json
@@ -16,6 +16,10 @@
"engines": {
"node": "~0.6"
},
+ "devDependencies": {
+ "nodeunit": "0.6.x",
+ "rimraf": "1.0.x"
+ },
"scripts": {
"preinstall": "./configure",
"install": "make"
View
2  test/convenience-repo.js
@@ -1,5 +1,5 @@
var git = require( "../" );
-var rimraf = require( "../vendor/rimraf");
+var rimraf = require("rimraf");
var fs = require( "fs" );
// Helper functions
View
13 test/index.js
@@ -1,27 +1,26 @@
try {
- var reporter = require( '../vendor/nodeunit' ).reporters['default'];
+ var reporter = require('nodeunit').reporters['default'];
}
catch( e ) {
var sys = require( 'util' );
sys.puts( 'Cannot find nodeunit module.' );
- sys.puts( 'You can download submodules for this project by doing:' );
+ sys.puts( 'You can install it by running:');
sys.puts( '' );
- sys.puts( ' git submodule update --init' );
+ sys.puts( ' npm install');
sys.puts( '' );
process.exit();
}
try {
- var rimraf = require( '../vendor/rimraf' );
+ var rimraf = require('rimraf');
}
catch(e) {
var sys = require( 'util' );
sys.puts( 'Cannot find rimraf module.' );
- sys.puts( 'You can download submodules for this project by doing:' );
+ sys.puts( 'You can install it by running:');
sys.puts( '' );
- sys.puts( ' git submodule init vendor/rimraf' );
- sys.puts( ' git submodule update vendor/rimraf' );
+ sys.puts( ' npm install');
sys.puts( '' );
process.exit();
}
View
2  test/raw-blob.js
@@ -1,6 +1,6 @@
var git = require( '../' ).raw
, path = require( 'path' )
- , rimraf = require( '../vendor/rimraf' );
+ , rimraf = require('rimraf');
var testRepo = new git.Repo();
View
2  test/raw-commit.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' ) || require( 'rimraf' ),
+ rimraf = require( 'rimraf' ),
path = require( 'path' );
var testRepo = new git.Repo();
View
2  test/raw-error.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' ) || require( 'rimraf' );
+ rimraf = require('rimraf');
// Helper functions
var helper = {
View
2  test/raw-object.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' );
+ rimraf = require('rimraf');
// Helper functions
var helper = {
View
2  test/raw-oid.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' );
+ rimraf = require('rimraf');
// Helper functions
var helper = {
View
2  test/raw-reference.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' );
+ rimraf = require('rimraf');
// Helper functions
var helper = {
View
2  test/raw-repo.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' ) || require( 'rimraf' ),
+ rimraf = require('rimraf'),
path = require( 'path' ),
fs = require( 'fs' );
View
2  test/raw-revwalk.js
@@ -1,5 +1,5 @@
var git = require( '../' ).raw,
- rimraf = require( '../vendor/rimraf' ) || require( 'rimraf' );
+ rimraf = require('rimraf');
var testRepo = new git.Repo();
1  vendor/nodeunit
@@ -1 +0,0 @@
-Subproject commit 1f203818990be48e327c95f067301a6b713eb812
1  vendor/rimraf
@@ -1 +0,0 @@
-Subproject commit 7e9818fcc9eb7a967731d8e84b062375c5221621
Please sign in to comment.
Something went wrong with that request. Please try again.