git-diff-apply
Advanced tools
Comparing version 0.19.0 to 0.19.1
{ | ||
"name": "git-diff-apply", | ||
"version": "0.19.0", | ||
"version": "0.19.1", | ||
"description": "Use an unrelated remote repository to apply a git diff", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -10,3 +10,3 @@ 'use strict'; | ||
let sha = await run(`git --git-dir="${gitDir}" rev-parse ${tag}`); | ||
await run(`git --git-dir="${gitDir}" --work-tree="${repoDir}" checkout ${sha}`); | ||
await run(`git --git-dir="${gitDir}" --work-tree="${repoDir}" checkout ${sha.trim()}`); | ||
}; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
module.exports = async function getSubDir() { | ||
let root = await run('git rev-parse --show-toplevel'); | ||
let root = (await run('git rev-parse --show-toplevel')).trim(); | ||
return root; | ||
}; |
@@ -11,3 +11,3 @@ 'use strict'; | ||
let files = (await run('git ls-files', options)).split(/\r?\n/g); | ||
let files = (await run('git ls-files', options)).trim().split(/\r?\n/g); | ||
@@ -14,0 +14,0 @@ return files; |
@@ -188,3 +188,3 @@ 'use strict'; | ||
try { | ||
await utils.run(`git cherry-pick --no-commit ${sha}`); | ||
await utils.run(`git cherry-pick --no-commit ${sha.trim()}`); | ||
} catch (err) { | ||
@@ -191,0 +191,0 @@ hasConflicts = true; |
@@ -10,5 +10,4 @@ 'use strict'; | ||
let { stdout } = await exec(command, options); | ||
let result = stdout.trim(); | ||
debug(result); | ||
return result; | ||
debug(stdout); | ||
return stdout; | ||
}; |
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
492