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

In a multi-repo workspace, when given full urls of specific branches of the modules, origin is always set to origin/main #19498

Open
srgwsrgwetgethg opened this issue Mar 1, 2024 · 0 comments
Labels
team: team-experience type: bug Something isn't working

Comments

@srgwsrgwetgethg
Copy link

Bug description

In a multi-repo workspace, when given full urls of specific branches of the modules, origin is always set to origin/main
Also, the git module shows as active branch the branch of the main repository.
To must do a git switch to activate the desired branch.

Steps to reproduce

  • Create two repos (in bitbucket) (e.g. main and module)
  • Create a branch for each repo (eg v1 and v1.0)
  • Create a workspace for for ../main/src/v1 (the full branch url)
  • add a additionalRepositories entry for module/src/v1.0 (full branch url)
  • add a main.code-workspace file to add a workspace folder for the module repo.
  • create a prebuild for this configuration
  • create a new workspace based on the prebuild

Now the Source Control plugin will show the module folder as if it is pointing to branch v1 (which does not exist) and actually git will push to the main branch of module.

Workspace affected

No response

Expected behavior

Just as with the main repository, the 'origin' of the module should point to the branch used as url in the additionalRepositories configuration.

Example repository

No response

Anything else?

No response

@srgwsrgwetgethg srgwsrgwetgethg added the type: bug Something isn't working label Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team: team-experience type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant