Skip to content

[Bug]: Doesn't create .gitignore #186

@ghz-max

Description

@ghz-max

Bug Description

When running "grepai init" I'd expect the tool to add a ".grepai/" entry to the .gitignore file is the cwd is a git repo.

At the moment, grepai only add the ".grepai" entry if a ".gitignore" file exists

Steps to Reproduce

  1. be in a git versioned folder/project
  2. ensure .gitignore doesn't exist (rename it or delete it)
  3. run grepai init

Expected Behavior

.gitignore file created with ".grepai/" entry

Actual Behavior

no .gitignore file created, no ".grepai/" entry added anywhere

grepai Version

0.34.0

Operating System

Linux

Embedding Provider

Not applicable

Relevant Logs

Configuration

Checklist

  • I have searched existing issues to avoid duplicates
  • I am using the latest version of grepai

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions