-
Notifications
You must be signed in to change notification settings - Fork 317
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
Switch from a detached head to a branch not working #995
Comments
Hi! I would like to work on this, can you help me how to get started?! |
Hey @Bl4ck-h00d Thanks for kicking in. The extension has two parts: a front-end in Typescript and a back-end in Python. Whenever you trigger an action from the front-end, it will call a In this case, to switch branch, the command call is done there: jupyterlab-git/jupyterlab_git/git.py Line 880 in 02c6d9a
The action is triggered in the frontend with that callback: jupyterlab-git/src/components/BranchMenu.tsx Line 402 in 02c6d9a
The workflow is the following:
The troubles is in the front-end because we want to deal with files that are different between two branches at Line 458 in 02c6d9a
with {"base":"(HEAD detached at v0.21.0)","remote":"master"}
Let me know if you need more information and don't hesitate to open a PR early to discuss your fix. |
Transforming the fake branch name Line 459 in 02c6d9a
should solve this issue. |
Fixed by #1218 |
If the repository is in detached head (for example after switching to a tag), then switching to a branch will fail.
Error message:
The text was updated successfully, but these errors were encountered: