Skip to content

Conversation

@axosoft-ramint
Copy link
Contributor

Closes #4039

Two fixes, each one commit:

  • Fixes false "current branch" detection using the base repository ("current branch" and "remote" must use the head repository, but "open repo" can still use either)
  • Instead of prompting, returns a command message node which can be clicked to add the missing remote.

@axosoft-ramint axosoft-ramint added the area-launchpad Issues or features related to Launchpad label Feb 20, 2025
@d13 d13 removed the area-launchpad Issues or features related to Launchpad label Feb 20, 2025
if (identity.remote?.url == null) return;
await repo.git
.remotes()
.addRemoteWithResult?.(identity.provider.repoDomain, identity.remote.url, { fetch: true });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
.addRemoteWithResult?.(identity.provider.repoDomain, identity.remote.url, { fetch: true });
.addRemote?.(identity.provider.repoDomain, identity.remote.url, { fetch: true });

Since we aren't returning the remote we don't need to wait for it

@axosoft-ramint axosoft-ramint merged commit 864a1e1 into main Feb 22, 2025
3 checks passed
@axosoft-ramint axosoft-ramint deleted the 4039-launchpad-view-can-cause-an-unwanted-add-remote-prompt-on-load branch February 22, 2025 00:14
saeedzaha pushed a commit to saeedzaha/vscode-gitlens that referenced this pull request Apr 28, 2025
…gitkraken#4081)

* Fixes remote and open branch matching on base ref

* Uses command message node instead of prompt for missing remote

* Updates view styling

---------

Co-authored-by: Eric Amodio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launchpad view can cause an unwanted "add remote" prompt on load

3 participants