You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to switch branches on Desktop, it will just continuously loop "Switching to branch" but never actually transition. If I close Desktop and open it up again, it will still be on the original branch. It doesn't matter what branch I try to switch to, none of them work. It also loops if I try to create a new branch.
Version & OS
Version 2.4.0
Windows 10
Steps to reproduce the behavior
Open Desktop
Click "Current Branch"
Select any other branch (or select New Branch)
"Switching to branch" will loop infinitely in the "Current Branch" rectangle
Expected behavior
It should transition to the other branch.
Actual behavior
It loops forever, displaying "Switching to branch".
Screenshots
Add screenshots to help explain your problem, if applicable.
@mginham thanks for sharing the log files. It looks like you ran into some line ending issues -- did you see all of the files in your repositories changes, and then commit those changes? We have a help document that gives some line ending recommendations, which I would recommend taking a look at. If you have any questions about that let me know.
It looks like you were able to commit some of those changes, but then this interesting error was thrown:
2020-04-01T20:03:56.174Z - error: [ui] Could not load old contents for syntax highlighting
Error: Git returned an unexpected exit code '128' which should be handled by the caller.'
Next this error was thrown:
2020-04-01T20:09:54.696Z - error: [ui] `git -c credential.helper= -c protocol.version=2 checkout --progress origin/CustomizationAndProgress -b CustomizationAndProgress --` exited with an unexpected code: 1.
stderr:
error: Your local changes to the following files would be overwritten by checkout:
SE2250-GroupProject-branchTest/Library/PackageCache/[email protected]/Tests/Runtime/GetCurrentRTTCallDoesntCrashWhenUseWebSockets/Resources/GetCurrentRTTCallDoesntCrashWhenUseWebSockets_PlayerPrefab.prefab
SE2250-GroupProject-branchTest/Library/PackageCache/[email protected]/Tests/Runtime/GetCurrentRTTCallDoesntCrashWhenUseWebSockets/Resources/GetCurrentRTTCallDoesntCrashWhenUseWebSockets_PlayerPrefab.prefab.meta
Please commit your changes or stash them before you switch branches.
Aborting
This error is Git preventing you from switching branches due to uncommitted changes potentially being lost. Have you attempted to commit the changes to these two files? Did you possibly previously stash any uncommitted changes?
@mginham As we have not heard back from you on this issue, we are closing it for now. Should you have any more details or questions, please reach out and we will be happy to help. Thank you.
I am able to reproduce this when --skip-worktree has been applied to ignore a file and then trying to switch to a different branch. A workaround is to use --no-skip-worktree before switching branches. Could this bug be re-opened?
Activity
steveward commentedon Apr 2, 2020
@mginham thanks for sharing the log files. It looks like you ran into some line ending issues -- did you see all of the files in your repositories changes, and then commit those changes? We have a help document that gives some line ending recommendations, which I would recommend taking a look at. If you have any questions about that let me know.
It looks like you were able to commit some of those changes, but then this interesting error was thrown:
Next this error was thrown:
This error is Git preventing you from switching branches due to uncommitted changes potentially being lost. Have you attempted to commit the changes to these two files? Did you possibly previously stash any uncommitted changes?
tierninho commentedon Apr 14, 2020
@mginham As we have not heard back from you on this issue, we are closing it for now. Should you have any more details or questions, please reach out and we will be happy to help. Thank you.
hoeschenbd commentedon May 11, 2020
I am able to reproduce this when --skip-worktree has been applied to ignore a file and then trying to switch to a different branch. A workaround is to use --no-skip-worktree before switching branches. Could this bug be re-opened?
tierninho commentedon Jul 7, 2020
Closing this in favor of an earlier bug report here: #9297