Skip to content

Checkout branch name with slash via Web UI no longer fails #316

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

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

isc-vgao
Copy link
Contributor

This fixes #295

Testing Steps:

  1. In git-source-control repo, checkout branchNameWithSlash
git checkout branchNameWithSlash
  1. Load git-source-control into the current namespace
zpm "load <path to local git-source-control repo>"
  1. Create a branch with a name containing a slash
git checkout -b  feature/chgNNNNNN_some_description
git push --set-upstream origin feature/chgNNNNNN_some_description

(enter passcode for deploy key if prompted)

git checkout branchNameWithSlash
  1. In Management Portal Favorites section, open git-source-control UI.
  2. Under the Remote Branches section of the side navigation menu, click More ... > origin/feature/chgNNNNNN_some_description > Checkout Branch. Check that "Switched to branch 'feature/chgNNNNNN_some_description'" popup shows up at the top of the page and feature/chgNNNNNN_some_description is bolded under the Local Branches section of the side navigation menu.
  3. Under the Local Branches section of the side navigation menu, click branchNameWithSlash > Checkout Branch.
  4. Under the Local Branches section of the side navigation menu, click feature/chgNNNNNN_some_description > Checkout Branch. Check that "Switched to branch 'feature/chgNNNNNN_some_description'" popup shows up at the top of the page and feature/chgNNNNNN_some_description is bolded under the Local Branches section of the side navigation menu.
  5. Under the Local Branches section of the side navigation menu, click branchNameWithSlash > Checkout Branch.
  6. Delete the branch created in step 3.
git push origin --delete feature/chgNNNNNN_some_description

(enter passcode for deploy key if prompted)

git branch -d feature/chgNNNNNN_some_description

@isc-vgao isc-vgao self-assigned this Jan 10, 2024
@isc-vgao isc-vgao changed the title fix checkout branch name with slash Checkout branch name with slash via Web UI no longer fails Jan 10, 2024
@isc-tleavitt isc-tleavitt merged commit 6c331f4 into main Jan 10, 2024
@isc-tleavitt isc-tleavitt deleted the branchNameWithSlash branch January 10, 2024 19:20
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.

Error on checkout with branch name containing slash
2 participants