Skip to content

Commit

Permalink
revert(nx-heroku): restore default CWD with spawn
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Mar 2, 2023
1 parent 15de1ff commit 42dfae4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/nx-heroku-e2e/tests/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
updateFile,
} from '@nrwl/nx-plugin/testing';
import { execSync as oGExecSync } from 'child_process';
import { copyFileSync, writeFileSync } from 'fs';
import { copyFileSync } from 'fs';
import { PackageJson } from 'nx/src/utils/package-json';
import { join } from 'path';

Expand All @@ -35,7 +35,7 @@ export function initGit() {
execSync(
`git init --quiet
# Make CI runner happy
git config user.email "bot@aloes.io"
git config user.email "${process.env.HEROKU_EMAIL || 'ed@getlarge.eu'}"
git config user.name "Test Bot"
git config commit.gpgsign false
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class HerokuApp {
args.push('--force');
}

const push = spawn('git', args, { signal, cwd: this.context.cwd });
const push = spawn('git', args, { signal });
push.stdout
.setEncoding('utf-8')
//? if data contains `Everything up-to-date`, should we still restart the app ?
Expand Down

0 comments on commit 42dfae4

Please sign in to comment.