Skip to content

Commit 3a9fdd3

Browse files
committed
Remove git-get-status package
1 parent 60ecbd1 commit 3a9fdd3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

gulpfile.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const git = require('gulp-git'),
2-
gitStatus = require('git-get-status'),
1+
const exec = require('child_process').exec,
2+
git = require('gulp-git'),
33
gulp = require('gulp'),
44
jshint = require('gulp-jshint'),
55
prompt = require('gulp-prompt');
@@ -9,8 +9,12 @@ function getVersionFromPackage() {
99
}
1010

1111
gulp.task('ensure-clean-working-directory', (cb) => {
12-
gitStatus((err, status) => {
13-
if (err, !status.clean) {
12+
git.status({ args: '-s', quiet: true }, (err, stdout) => {
13+
if (err) {
14+
throw new Error(err);
15+
}
16+
17+
if (stdout.length > 0) {
1418
throw new Error('Unable to proceed, your working directory is not clean.');
1519
}
1620

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "JavaScript library with custom appenders for log4js",
55
"dependencies": {},
66
"devDependencies": {
7-
"git-get-status": "^1.0.2",
87
"gulp": "^4.0.2",
98
"gulp-git": "^2.10.1",
109
"gulp-jshint": "~2.1.0",

0 commit comments

Comments
 (0)