Git Source Control

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The source control in Cursor IDE shows “Scanning for Git repository…” infinitely when the IDE is opened for the first time after system startup
I am having to restart cursor for the source control to recognise my git repository and pull up the current branch and changed files etc.
Issues is when opening for the very first time after system startup it isn’t recognising the git.

Steps to Reproduce

Turn on system → Open Cursor IDE → source control extension

Expected Behavior

Shows the text “Scanning for git repositories…” infinitely

Operating System

Windows 10/11

Version Information

Version: 3.3.16 (user setup)
VSCode Version: 1.105.1
Commit: 7f0f522221d0ba220e4edb766bb3c47c08c14ab0
Date: 2026-05-06T20:40:56.501Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hi @Haroor_Mohamed_Rayan ,

This is a known bug with git repository scanning on Windows. Our team is tracking it. Merging this into an existing thread where we’re tracking the same issue: Scanning folder for Git repositories

In the meantime, the most effective workaround: open Settings (Ctrl+,), search for git.autoRepositoryDetection, and set it to openEditors. This skips the full directory scan and should prevent the hang on startup.