mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
5c64324c0a
commit
5e3d538812
1 changed files with 2 additions and 4 deletions
|
@ -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!');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue