ValueError: Problem accessing HEAD branch
See original GitHub issueHi! After updating my images today, nbgitpuller started to throw this error when starting from an url which worked previously.
Here is the url (generated with the generator) and the error message:
Traceback (most recent call last):
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/nbgitpuller/pull.py", line 120, in resolve_default_branch
head_branch = subprocess.run(
File "/srv/conda/envs/notebook/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['git', 'ls-remote', '--symref', '--', 'https://github.com/OGGM/tutorials', 'HEAD']' returned non-zero exit status 128.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/nbgitpuller/handlers.py", line 76, in get
gp = GitPuller(repo, repo_dir, branch=branch, depth=depth, parent=self.settings['nbapp'])
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/nbgitpuller/pull.py", line 76, in __init__
self.branch_name = self.resolve_default_branch()
File "/srv/conda/envs/notebook/lib/python3.9/site-packages/nbgitpuller/pull.py", line 136, in resolve_default_branch
raise ValueError(m)
ValueError: Problem accessing HEAD branch: https://github.com/OGGM/tutorials
Issue Analytics
- State:
- Created 2 years ago
- Comments:19 (7 by maintainers)
Top Results From Across the Web
git - Push origin master error on new repository
The error message leads to the conclusion that you do not have a master branch in your local repository. Either push your main...
Read more >How to correct a #VALUE! error in AVERAGE or SUM ...
This is an array formula. So you either need to press ENTER (only if you are using Microsoft 365) or CTRL+SHIFT+ENTER in the...
Read more >Excel VLOOKUP not working - fixing #N/A and #VALUE ...
If your lookup values exceed this limit, a #VALUE! error will be displayed: ... The main causes of errors in Excel VLOOKUP.
Read more >Repository API Objects — github3.py 3.2.0 documentation
The number of issues currently open on the repository. parent¶ ... Create a pull request of head onto base branch in this repo....
Read more >git.repo.base — Pytmosph3R 2.1.1 documentation
The following attributes are worth using: 'working_dir' is the working directory of ... objects representing the branch heads in this repo :return: ``git....
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 FreeTop 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
Top GitHub Comments
I was using a tagged image from 2021 05 16
You can still open it on binder with:
https://mybinder.org/v2/gh/OGGM/binder/5959f23f1cdcff95384bbe0897b8290150969b2f
In this image, the
git ls-remote --symref -- https://github.com/OGGM/tutorials HEAD
returns properly. (i.e. nothing to do with gitpuller).I am making changes in the repos to delete the
.git
folder inpostBuild
.For future reference, here are the permanent mybinder builds to check what happened:
Dockerfile
+ Travis-CI which worked