Skip to content

Commit 7bb2371

Browse files
committed
fix(@angular-devkit/schematics): pass the environment to git
Otherwise it does not get proper settings and git cannot find the gitconfig (using HOME). Fix angular#10201
1 parent 7883af4 commit 7bb2371

File tree

1 file changed

+1
-0
lines changed
  • packages/angular_devkit/schematics/tasks/repo-init

1 file changed

+1
-0
lines changed

packages/angular_devkit/schematics/tasks/repo-init/executor.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default function(
3232
shell: true,
3333
cwd: path.join(rootDirectory, options.workingDirectory || ''),
3434
env: {
35+
...process.env,
3536
...(authorName
3637
? { GIT_AUTHOR_NAME: authorName, GIT_COMMITTER_NAME: authorName }
3738
: {}

0 commit comments

Comments
 (0)