Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix branch checkout after git clone #160922

Merged
merged 3 commits into from
Sep 15, 2022
Merged

Fix branch checkout after git clone #160922

merged 3 commits into from
Sep 15, 2022

Conversation

joyceerhl
Copy link
Contributor

This PR fixes #158386

The previous implementation would always fail to discover the repository we were interested in, because getRepository only looks at repositories that are already known to the git extension, and the newly cloned git repo needs to be explicitly opened with openRepository first.

@joyceerhl joyceerhl enabled auto-merge (squash) September 14, 2022 18:10
@joyceerhl joyceerhl self-assigned this Sep 14, 2022
@vscodenpa vscodenpa added this to the September 2022 milestone Sep 14, 2022
@joyceerhl joyceerhl merged commit 6835a98 into main Sep 15, 2022
@joyceerhl joyceerhl deleted the dev/joyceerhl/hard-lynx branch September 15, 2022 16:11
benibenj pushed a commit that referenced this pull request Sep 15, 2022
* Fix branch checkout after git clone

* Add progress notification while checking out ref

* Remove promise chain
@github-actions github-actions bot locked and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Git uri handler clone should preserve branch
3 participants