Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit db93757

Browse filesBrowse files
committed
Use npm to install nodeunit and rimraf
Remove submodules, change paths when requiring these modules and fix errors in `test/index.js`.
1 parent f82b9d9 commit db93757
Copy full SHA for db93757

File tree

Expand file treeCollapse file tree

14 files changed

+19
-24
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

14 files changed

+19
-24
lines changed
Open diff view settings
Collapse file

‎.gitmodules‎

Copy file name to clipboardExpand all lines: .gitmodules
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
[submodule "vendor/nodeunit"]
2-
path = vendor/nodeunit
3-
url = git://github.com/caolan/nodeunit.git
4-
[submodule "vendor/rimraf"]
5-
path = vendor/rimraf
6-
url = git://github.com/isaacs/rimraf.git
71
[submodule "vendor/libgit2"]
82
path = vendor/libgit2
93
url = git://github.com/libgit2/libgit2.git
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
"engines": {
1717
"node": "~0.6"
1818
},
19+
"devDependencies": {
20+
"nodeunit": "0.6.x",
21+
"rimraf": "1.0.x"
22+
},
1923
"scripts": {
2024
"preinstall": "./configure",
2125
"install": "make"
Collapse file

‎test/convenience-repo.js‎

Copy file name to clipboardExpand all lines: test/convenience-repo.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var git = require( "../" );
2-
var rimraf = require( "../vendor/rimraf");
2+
var rimraf = require("rimraf");
33
var fs = require( "fs" );
44

55
// Helper functions
Collapse file

‎test/index.js‎

Copy file name to clipboardExpand all lines: test/index.js
+6-7Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11

22
try {
3-
var reporter = require( '../vendor/nodeunit' ).reporters['default'];
3+
var reporter = require('nodeunit').reporters['default'];
44
}
55
catch( e ) {
66
var sys = require( 'util' );
77
sys.puts( 'Cannot find nodeunit module.' );
8-
sys.puts( 'You can download submodules for this project by doing:' );
8+
sys.puts( 'You can install it by running:');
99
sys.puts( '' );
10-
sys.puts( ' git submodule update --init' );
10+
sys.puts( ' npm install');
1111
sys.puts( '' );
1212
process.exit();
1313
}
1414

1515
try {
16-
var rimraf = require( '../vendor/rimraf' );
16+
var rimraf = require('rimraf');
1717
}
1818
catch(e) {
1919
var sys = require( 'util' );
2020
sys.puts( 'Cannot find rimraf module.' );
21-
sys.puts( 'You can download submodules for this project by doing:' );
21+
sys.puts( 'You can install it by running:');
2222
sys.puts( '' );
23-
sys.puts( ' git submodule init vendor/rimraf' );
24-
sys.puts( ' git submodule update vendor/rimraf' );
23+
sys.puts( ' npm install');
2524
sys.puts( '' );
2625
process.exit();
2726
}
Collapse file

‎test/raw-blob.js‎

Copy file name to clipboardExpand all lines: test/raw-blob.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var git = require( '../' ).raw
22
, path = require( 'path' )
3-
, rimraf = require( '../vendor/rimraf' );
3+
, rimraf = require('rimraf');
44

55
var testRepo = new git.Repo();
66

Collapse file

‎test/raw-commit.js‎

Copy file name to clipboardExpand all lines: test/raw-commit.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var git = require( '../' ).raw,
2-
rimraf = require( '../vendor/rimraf' ) || require( 'rimraf' ),
2+
rimraf = require( 'rimraf' ),
33
path = require( 'path' );
44

55
var testRepo = new git.Repo();
Collapse file

‎test/raw-error.js‎

Copy file name to clipboardExpand all lines: test/raw-error.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var git = require( '../' ).raw,
2-
rimraf = require( '../vendor/rimraf' ) || require( 'rimraf' );
2+
rimraf = require('rimraf');
33

44
// Helper functions
55
var helper = {
Collapse file

‎test/raw-object.js‎

Copy file name to clipboardExpand all lines: test/raw-object.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var git = require( '../' ).raw,
2-
rimraf = require( '../vendor/rimraf' );
2+
rimraf = require('rimraf');
33

44
// Helper functions
55
var helper = {
Collapse file

‎test/raw-oid.js‎

Copy file name to clipboardExpand all lines: test/raw-oid.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var git = require( '../' ).raw,
2-
rimraf = require( '../vendor/rimraf' );
2+
rimraf = require('rimraf');
33

44
// Helper functions
55
var helper = {
Collapse file

‎test/raw-reference.js‎

Copy file name to clipboardExpand all lines: test/raw-reference.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var git = require( '../' ).raw,
2-
rimraf = require( '../vendor/rimraf' );
2+
rimraf = require('rimraf');
33

44
// Helper functions
55
var helper = {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.