Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
fix: init git in the project directory instead of cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
phuctm97 committed Jul 3, 2022
1 parent 9d628d2 commit 13be148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/try-init-git.ts
Expand Up @@ -27,7 +27,7 @@ async function isInMercurialRepository(

export async function tryGitInit(projectDirectory: string): Promise<boolean> {
try {
await exec("git --version");
await exec("git --version", { cwd: projectDirectory });
if (
(await isInGitRepository(projectDirectory)) ||
(await isInMercurialRepository(projectDirectory))
Expand Down

0 comments on commit 13be148

Please sign in to comment.