Detect git repo in parent directory (AI Review, git indexing)

It looks like Cursor doesn’t look above the current workspace for a git repository (something that VS Code does for its other features), when it comes to the AI Review feature, as well as presumably the Git indexing feature. In a big monorepo, it’s common to open just a subfolder of the repo (e.g. frontend). So this would be a very useful addition - currently, it could even be considered a bug.

2 Likes

same issue: [Review] can't recognize git repository when open in subDirectory · Issue #1864 · getcursor/cursor · GitHub

I had to open another window to use the the AI review feature, so bad