Skip to content
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

error when adding repository that has no "master" branch #286

Open
1 of 2 tasks
kgjenkins opened this issue Dec 16, 2022 · 1 comment
Open
1 of 2 tasks

error when adding repository that has no "master" branch #286

kgjenkins opened this issue Dec 16, 2022 · 1 comment

Comments

@kgjenkins
Copy link

What is the bug or the crash?

When trying to add a collection from a repository that only has a branch called "main", I get the following error (b'refs/heads/master'):
image

I was able to solve the problem by creating a new branch called "master".

I'm guessing the the branch name "master" is hardcoded into the QGIS Resource Sharing plugin somewhere. Maybe there is a way to automatically find the default branch?

Steps to reproduce the issue

Let me know if you would like for me to remove the "master" branch from my repo for testing.

Versions

QGIS version
3.28.1-Firenze
QGIS code revision
fde3b8fbb8
Qt version
5.15.3
Python version
3.9.5
Compiled against GDAL/OGR
3.6.0
Running against GDAL/OGR
3.6.1
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.39.4
PDAL version
2.4.3
PostgreSQL client version
unknown
SpatiaLite version
5.0.1
QWT version
6.1.6
QScintilla2 version
2.13.1
OS version
Windows 10 Version 2009

Active Python plugins
mmqgis
2021.9.10
nominatim
1.4.3
pcraster_tools
0.2.0
plugin_reloader
0.9.2
processing_wbt
1.3.1
qgis2web
3.16.0-color-svg
qgis_resource_sharing
1.0.0
QNEAT3
1.0.4
QuickOSM
2.1.1
quick_map_services
0.19.32
RasterAttributeTable
1.2
SRTM-Downloader
3.1.17
StreetView
3.2
valuetool
3.0.15
zoom_level
0.2.0
db_manager
0.1.20
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the official roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@kgjenkins kgjenkins added the bug label Dec 16, 2022
@kylefelipe
Copy link

im facing the same problem here....
we use main, instead master....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants