Skip to content

Commit

Permalink
fix: use built in execSync options to fix cross-os issues (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeroslav authored Mar 16, 2022
1 parent cb1daea commit 661e2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6479,7 +6479,7 @@ async function findExistingCommit(shas) {
*/
async function commitExists(commitSha) {
try {
execSync(`git cat-file -e ${commitSha} 2> /dev/null`);
execSync(`git cat-file -e ${commitSha}`, { stdio: ['pipe', 'pipe', null] });
return true;
} catch {
return false;
Expand Down
2 changes: 1 addition & 1 deletion find-successful-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async function findExistingCommit(shas) {
*/
async function commitExists(commitSha) {
try {
execSync(`git cat-file -e ${commitSha} 2> /dev/null`);
execSync(`git cat-file -e ${commitSha}`, { stdio: ['pipe', 'pipe', null] });
return true;
} catch {
return false;
Expand Down

0 comments on commit 661e2af

Please sign in to comment.