Comparing version 2.3.1 to 2.3.2
@@ -13,4 +13,8 @@ 'use strict'; | ||
} | ||
if (!remote || typeof remote !== 'string') { | ||
var error = new Error('gulp-git: remote is required git.removeRemote("origin")'); | ||
if (!cb || typeof cb !== 'function') throw error; | ||
return cb(error); | ||
} | ||
if (!cb || typeof cb !== 'function') cb = function () {}; | ||
if (!remote) cb(new Error('gulp-git: remote is required git.removeRemote("origin")')); | ||
if (!opt) opt = {}; | ||
@@ -17,0 +21,0 @@ if (!opt.cwd) opt.cwd = process.cwd(); |
{ | ||
"name": "gulp-git", | ||
"description": "Git plugin for gulp (gulpjs.com)", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"homepage": "http://github.com/stevelacy/gulp-git", | ||
@@ -28,4 +28,4 @@ "repository": { | ||
"docs": "rimraf docs/* && jsdoc ./index.js ./lib --recurse --destination ./docs", | ||
"pretest": "rimraf test/repo test/tmp && eslint ./index.js ./examples/ ./lib/ ./test/", | ||
"test": "mocha --reporter spec --timeout 6000 test/main.js" | ||
"lint": "rimraf test/repo test/tmp && eslint ./index.js ./examples/ ./lib/ ./test/", | ||
"test": "mocha --reporter spec --timeout 6000 test/main.js && npm run lint" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
@@ -256,2 +256,9 @@ # gulp-git | ||
// Show the formatted git diff | ||
gulp.task('diff', function(){ | ||
gulp.src('./*') | ||
.pipe(git.diff('master', {log: true})) | ||
.pipe(gulp.dest('./diff.out')); | ||
}); | ||
// Git rm a file or folder | ||
@@ -258,0 +265,0 @@ gulp.task('rm', function(){ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49817
897
732