Skip to content

Commit

Permalink
Use dugite-native's custom system config on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
niik committed May 21, 2024
1 parent 5d426af commit 86da480
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/git-environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export function setupEnvironment(
}
}

if (process.platform !== 'win32' && !env.GIT_CONFIG_SYSTEM) {
env.GIT_CONFIG_SYSTEM = path.join(gitDir, 'etc', 'gitconfig')
}

if (process.platform === 'darwin' || process.platform === 'linux') {
// templates are used to populate your .git folder
// when a repository is initialized locally
Expand Down

0 comments on commit 86da480

Please sign in to comment.