Skip to content

Extension cannot find git repo when VS Code didn't open the git root directory #7964

@yanli0303

Description

@yanli0303
  • Extension version: 0.120.0
  • VSCode Version: 1.105.0 (Universal)
    • Commit: 03c265b1adee71ac88f833e065f7bb956b60550a
    • Date: 2025-10-08T14:09:35.891Z
  • OS: Darwin arm64 24.6.0
  • Repository Clone Configuration (single repository/fork of an upstream repository): single repository
  • GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): GitHub.com

Steps to Reproduce:

  1. Git clone a repo

  2. Open a subdirectory of the git clone

  3. This extension shows a blank view, see output log below:

    2025-10-09 16:20:46.001 [info] [Activation] Extension version: 0.120.0
    2025-10-09 16:20:46.113 [info] [Authentication] Creating hub for .com
    2025-10-09 16:20:46.137 [info] [Activation] Looking for git repository
    2025-10-09 16:20:46.137 [info] [Activation] Found 0 repositories during activation
    2025-10-09 16:20:46.137 [info] [Activation] Git repository found, initializing review manager and pr tree view.
    2025-10-09 16:20:46.137 [info] [GitAPI] Registering git provider
    2025-10-09 16:20:46.137 [info] [Activation] Repo file:///Users/me/Desktop/git-clone is not in a workspace folder, ignoring.
    2025-10-09 16:20:46.494 [info] [Activation] Git initialization state changed: state=initialized
    

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcandidateIssue identified as probable candidate for fixing in the next releaseverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions