staged-git-files
Advanced tools
+10
-2
@@ -38,3 +38,3 @@ var spawn = require("child_process").spawn; | ||
| sgf.firstHead = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"; | ||
| // sgf.firstHead = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"; | ||
@@ -44,3 +44,11 @@ sgf.getHead = function(callback) { | ||
| if (err && err.message.indexOf("fatal: Needed a single revision")!==-1) { | ||
| callback(null, sgf.firstHead); | ||
| // callback(null, sgf.firstHead); | ||
| run("git hash-object -t tree /dev/null", function(err, stdout, stderr) { | ||
| if (err || stderr) { | ||
| callback(err || new Error("STDERR: " + stderr)); | ||
| } else { | ||
| stdout = stdout.replace("\n", ""); | ||
| callback(null, stdout); | ||
| } | ||
| }); | ||
| } else if (err || stderr) { | ||
@@ -47,0 +55,0 @@ callback(err || new Error("STDERR: " + stderr)); |
+1
-1
| { | ||
| "name": "staged-git-files", | ||
| "version": "1.1.1", | ||
| "version": "1.1.2", | ||
| "devDependencies": { | ||
@@ -5,0 +5,0 @@ "should": "~2.0.1", |
+1
-1
@@ -38,3 +38,3 @@ | ||
| sgf.getHead(asyncCatch(done, function(head){ | ||
| head.should.equal(sgf.firstHead); | ||
| head.should.equal('4b825dc642cb6eb9a060e54bf8d69288fbee4904'); | ||
| })); | ||
@@ -41,0 +41,0 @@ }); |
Sorry, the diff of this file is not supported yet
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
23060
1.64%552
1.47%9
-10%7
16.67%