diff options
author | 2023-01-26 20:36:29 +0000 | |
---|---|---|
committer | 2023-01-26 20:36:29 +0000 | |
commit | 5e3d538812793a952953e7bc1aa65010dd7538fa (patch) | |
tree | a4a7a79d1b85d551497caf97566f2370717d4998 | |
parent | 5c64324c0a1b06e836c3d53668940faca4cb517d (diff) | |
download | astro-5e3d538812793a952953e7bc1aa65010dd7538fa.tar.gz astro-5e3d538812793a952953e7bc1aa65010dd7538fa.tar.zst astro-5e3d538812793a952953e7bc1aa65010dd7538fa.zip |
[ci] format
Diffstat (limited to '')
-rw-r--r-- | packages/create-astro/src/index.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/create-astro/src/index.ts b/packages/create-astro/src/index.ts index 71c8a2ad5..b760ce9bf 100644 --- a/packages/create-astro/src/index.ts +++ b/packages/create-astro/src/index.ts @@ -301,10 +301,8 @@ export async function main() { // Add a check to see if there is already a .git directory and skip 'git init' if yes (with msg to output) const gitDir = './.git'; if (fs.existsSync(gitDir)) { - ora().info( - dim('A .git directory already exists. Skipping creating a new Git repository.') - ); - } else { + ora().info(dim('A .git directory already exists. Skipping creating a new Git repository.')); + } else { await execaCommand('git init', { cwd }); ora().succeed('Git repository created!'); } |