Skip to content

When calling gitlens_start_review, a working tree is created for main, not for the branch with changes on Gitlab #4975

@nikolay-1986

Description

@nikolay-1986

Precondition

GitLab integration configured;
Open GitLab MR exists.

Steps to Reproduce:

Ask Copilot: Start review for <your_MR_URL>

Expected Result

  • Worktree created for GitLab MR;
  • MR checked out correctly;
  • AI review works with GitLab;
  • provider-specific features handled.

Actual Result

For some reason gitlens_start_review opens worktree for main, not for source branch of Gitlab MR:

VSCode Version:

Version: 1.109.2 (user setup) Commit: 591199df409fbf59b4b52d5ad4ee0470152a9b31 Date: 2026-02-10T20:18:23.520Z Electron: 39.3.0 ElectronBuildId: 13168319 Chromium: 142.0.7444.265 Node.js: 22.21.1 V8: 14.2.231.22-electron.0 OS: Windows_NT x64 10.0.26200

Gitlens version:

17.10.0

Git version:

git version 2.52.0.windows.1

CLI version:

CLI Core: 3.1.52
CLI Installer: 3.1.52

Logs gitlens-start-review fails for gitlab.zip

Metadata

Metadata

Assignees

Labels

area-mcpIssues or features related to the GitKraken MCPintegration-gitlabIssues or features related to GitLab integrationspending-releaseResolved but not yet released to the stable editionverified ✔Verified

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions