Binder correctly pulls the data for a branch, but git thinks it is in the master branch
See original GitHub issueBug description
When binder launches from a github branch, it gets the correct data for that branch. If you launch a Terminal window, git does not reflect that.
git branch
* master
Expected behaviour
In my example, I used the development branch. I expected git branch
to report “development”.
Actual behaviour
See bug description, above.
How to reproduce
This is the contents of README.md in my development branch:
bindertest
Test of using branch in binder
- Click on the launch binder badge.
- After jupyterlab shows up, launch Terminal panel
- In Terminal,
git branch
- Reports “* master”, expect “* development”
Your personal set up
Not relevant
- OS: Using Mac, but I don’t think that matters
- Version:
jupyterhub --version
1.1.0
- Configuration: N/A
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Jenkins Multi-Branch job fails for some branches
When I branch master either from the repo in GitLab or via a git checkout -b locally and push back to Gitlab and...
Read more >Improve documentation for new users not working on the ...
The content does show up if I use the master branch, but I was trying to test the binder environment setup, which currently...
Read more >Chapter 9 Conflicts - GitHub Tutorial
This is a basic introduction to GitHub. ... (use "git pull" to merge the remote branch into yours) # All conflicts fixed but...
Read more >omg, binder! - the stupidest thing... - Karl Broman
Back up, with binder. You've put your code and data in a github repository. Other people maybe want to try it out and...
Read more >BitBucket PRs failing to checkout on initial run after PR ...
When new commits are pushed to a branch which has an open pull request, the pull ... I've faced same problem today -...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I wonder if it’s related to
--no-checkout
https://github.com/jupyter/repo2docker/blob/8bbced7ded5a21b581f1f3846ffc9f87944ba799/repo2docker/contentproviders/git.py#L31git reset --hard
https://github.com/jupyter/repo2docker/blob/8bbced7ded5a21b581f1f3846ffc9f87944ba799/repo2docker/contentproviders/git.py#L55It’s to do with submodules
According to https://github.com/jupyterhub/nbgitpuller/issues/142 it’s possible to set the upstream git branch after cloning which might resolve this issue.