planetfederal / qgis-geogiglight-plugin

GNU General Public License v2.0
19 stars 9 forks source link

issue with pressing add layer to repo button #100

Closed bartvde closed 7 years ago

bartvde commented 7 years ago

Getting this error when clikcing on the add layer to repo button, @volaya says it should not let me press this button in this case:

selection_017


2017-01-13T11:54:38 1   Traceback (most recent call last):
              File "/home/bartvde/.qgis2/python/plugins/geogig/gui/dialogs/navigatordialog.py", line 282, in addLayer
                dlg = ImportDialog(self, repo = self.currentRepo)
              File "/home/bartvde/.qgis2/python/plugins/geogig/gui/dialogs/importdialog.py", line 56, in __init__
                self.initGui()
              File "/home/bartvde/.qgis2/python/plugins/geogig/gui/dialogs/importdialog.py", line 84, in initGui
                self.branches = self.repo.branches() if self.repo is not None else repos[0].branches()
            IndexError: list index out of range```
gioman commented 7 years ago

@volaya @bartvde I cannot replicate using the latest version available in the dev repository. When trying add a layer that is not a gpkg

screenshot_20170117_135532

bartvde commented 7 years ago

yeah I probably ran into a corner case since the directory in geogig was deleted, though QGIS was restarted as well

so this is probably triggered somehow by deleting the geogig workspace