diff --git a/cmd/project/init.go b/cmd/project/init.go index 5f7ce754e..51edb3459 100644 --- a/cmd/project/init.go +++ b/cmd/project/init.go @@ -88,11 +88,11 @@ func initInit( } defer gitingoref.Close() - if err := system.AddToGitignore(".secrets"); err != nil { + if err := system.AddToGitignore(".secrets\n"); err != nil { return fmt.Errorf("failed to add secrets to .gitignore: %w", err) } - if err := system.AddToGitignore(".nhost"); err != nil { + if err := system.AddToGitignore(".nhost\n"); err != nil { return fmt.Errorf("failed to add .nhost to .gitignore: %w", err) }