git-diff-apply
Advanced tools
Comparing version 0.20.3 to 0.20.4
{ | ||
"name": "git-diff-apply", | ||
"version": "0.20.3", | ||
"version": "0.20.4", | ||
"description": "Use an unrelated remote repository to apply a git diff", | ||
@@ -5,0 +5,0 @@ "main": "src", |
'use strict'; | ||
const run = require('./run'); | ||
const utils = require('./utils'); | ||
@@ -11,3 +12,3 @@ module.exports = async function commit(options) { | ||
// or the second commit has no changes | ||
await run('git commit --allow-empty -m "message" --no-verify', options); | ||
await utils.run('git commit --allow-empty -m "message" --no-verify', options); | ||
}; |
@@ -23,2 +23,3 @@ 'use strict'; | ||
const mergeDir = require('./merge-dir'); | ||
const doesBranchExist = require('./does-branch-exist'); | ||
@@ -179,5 +180,5 @@ const { isGitClean } = gitStatus; | ||
isTempBranchCommitted = true; | ||
await commit(); | ||
isCodeUntracked = false; | ||
isTempBranchCommitted = true; | ||
@@ -289,3 +290,3 @@ isCodeUntracked = true; | ||
try { | ||
if (isTempBranchCommitted) { | ||
if (isTempBranchCommitted && await doesBranchExist(tempBranchName)) { | ||
await utils.run(`git branch -D ${tempBranchName}`); | ||
@@ -292,0 +293,0 @@ } |
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
21140
23
597