Skip to content

Commit 3202288

Browse files
authored
Merge pull request #527 from yafanasiev/fix-git-command-env
fix: pass existing environment variables when executing git
2 parents 2e1ecda + 386e43b commit 3202288

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,7 @@ class Git {
660660
silent: false,
661661
cwd: pwd,
662662
env: {
663+
...process.env,
663664
GIT_COMMITTER_NAME: this.gitCommitterName,
664665
GIT_COMMITTER_EMAIL: this.gitCommitterEmail,
665666
},

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/git.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class Git {
1919
silent: false,
2020
cwd: pwd,
2121
env: {
22+
...process.env,
2223
GIT_COMMITTER_NAME: this.gitCommitterName,
2324
GIT_COMMITTER_EMAIL: this.gitCommitterEmail,
2425
},

0 commit comments

Comments
 (0)