git-diff-apply
Advanced tools
Comparing version 0.16.0 to 0.16.1
{ | ||
"name": "git-diff-apply", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"description": "Use an unrelated remote repository to apply a git diff", | ||
@@ -59,3 +59,3 @@ "main": "src/index.js", | ||
"eslint-plugin-prefer-let": "^1.0.1", | ||
"git-fixtures": "^0.15.5", | ||
"git-fixtures": "^0.15.6", | ||
"mocha": "^6.0.2", | ||
@@ -62,0 +62,0 @@ "mocha-helpers": "^1.2.1", |
@@ -112,7 +112,9 @@ 'use strict'; | ||
function resetIgnoredFiles() { | ||
let resetIgnoredFiles = co.wrap(function* resetIgnoredFiles() { | ||
for (let ignoredFile of ignoredFiles) { | ||
utils.run(`git checkout -- ${ignoredFile}`); | ||
if (yield fs.pathExists(ignoredFile)) { | ||
utils.run(`git checkout -- ${ignoredFile}`); | ||
} | ||
} | ||
} | ||
}); | ||
@@ -139,3 +141,3 @@ function applyDiff() { | ||
resetIgnoredFiles(); | ||
yield resetIgnoredFiles(); | ||
@@ -168,3 +170,3 @@ return; | ||
resetIgnoredFiles(); | ||
yield resetIgnoredFiles(); | ||
@@ -171,0 +173,0 @@ let wereAnyChanged = !isGitClean(); |
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
16938
481