Skip to content

Commit b26284b

Browse files
committed
fix(build): windows
1 parent 20242d4 commit b26284b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/git/git-env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const buildGitEnv = (): NodeJS.ProcessEnv => {
3131
NO_PROXY: process.env.NO_PROXY,
3232
GIT_TERMINAL_PROMPT: "0",
3333
GIT_CONFIG_NOSYSTEM: "1",
34-
GIT_CONFIG_GLOBAL: "/dev/null",
34+
GIT_CONFIG_GLOBAL: process.platform === "win32" ? "NUL" : "/dev/null",
3535
...(process.platform === "win32" ? {} : { GIT_ASKPASS: "/bin/false" }),
3636
};
3737
};

0 commit comments

Comments
 (0)