QGIS-Contribution / QGIS-ResourceSharing

QGIS Resource Sharing Plugin
http://qgis-contribution.github.io/QGIS-ResourceSharing/
GNU Affero General Public License v3.0
38 stars 18 forks source link

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

Open kgjenkins opened 1 year ago

kgjenkins commented 1 year ago

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

New profile

Additional context

No response

kylefelipe commented 7 months ago

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