Comparing version 2.4.0 to 2.4.1
@@ -14,3 +14,3 @@ 'use strict'; | ||
if (!cb || typeof cb !== 'function') cb = function () {}; | ||
if (!url) cb(new Error('gulp-git: Repo URL is required git.addRemote("origin", "https://github.com/user/repo.git")')); | ||
if (!url) return cb(new Error('gulp-git: Repo URL is required git.addRemote("origin", "https://github.com/user/repo.git")')); | ||
if (!remote) remote = 'origin'; | ||
@@ -25,3 +25,3 @@ if (!opt) opt = {}; | ||
return exec(cmd, {cwd: opt.cwd, maxBuffer: maxBuffer}, function(err, stdout, stderr) { | ||
if (err) cb(err); | ||
if (err) return cb(err); | ||
if (!opt.quiet) gutil.log(stdout, stderr); | ||
@@ -28,0 +28,0 @@ cb(); |
@@ -8,3 +8,3 @@ 'use strict'; | ||
if (!cb || typeof cb !== 'function') cb = function () {}; | ||
if (!url) cb(new Error('gulp-git: Repo URL is required git.submodule.add("https://github.com/user/repo.git", "repoName")')); | ||
if (!url) return cb(new Error('gulp-git: Repo URL is required git.submodule.add("https://github.com/user/repo.git", "repoName")')); | ||
if (!name) name = ''; | ||
@@ -19,3 +19,3 @@ if (!opt) opt = {}; | ||
return exec(cmd, {cwd: opt.cwd, maxBuffer: maxBuffer}, function(err, stdout, stderr) { | ||
if (err && cb) cb(err); | ||
if (err && cb) return cb(err); | ||
if (!opt.quiet) gutil.log(stdout, stderr); | ||
@@ -22,0 +22,0 @@ if (cb) cb(); |
@@ -27,3 +27,3 @@ 'use strict'; | ||
return exec(cmd, {cwd: opt.cwd, maxBuffer: maxBuffer}, function(err, stdout, stderr) { | ||
if (err) cb(err); | ||
if (err) return cb(err); | ||
if (!opt.quiet) gutil.log(stdout, stderr); | ||
@@ -30,0 +30,0 @@ cb(); |
@@ -30,3 +30,3 @@ 'use strict'; | ||
exec(cmd, {cwd: cwd, maxBuffer: maxBuffer}, function(err, stdout, stderr) { | ||
if (err) cb(err); | ||
if (err) return cb(err); | ||
if (!opt.quiet) gutil.log(stdout, stderr); | ||
@@ -33,0 +33,0 @@ files.forEach(that.push.bind(that)); |
@@ -16,3 +16,3 @@ 'use strict'; | ||
return exec(cmd, {cwd: opt.cwd, maxBuffer: maxBuffer}, function(err, stdout, stderr) { | ||
if (err && cb) cb(err); | ||
if (err && cb) return cb(err); | ||
if (!opt.quiet) gutil.log(stdout, stderr); | ||
@@ -19,0 +19,0 @@ if (cb) cb(); |
{ | ||
"name": "gulp-git", | ||
"description": "Git plugin for gulp (gulpjs.com)", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"homepage": "http://github.com/stevelacy/gulp-git", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
50605