gedit git plugin crashes on local git repository

Bug #1803853 reported by Dmitriy Geels
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gedit-plugins (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I get the following output in console:

dmig@dmig-Inspiron-5379:~$ gedit workspace/howdy-test.py
Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/appactivatable.py", line 89, in get_repository
    repo = self.__git_repos[repo_uri]
KeyError: 'file:///home/dmig/workspace/form-observer/.git'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/windowactivatable.py", line 298, in inserted
    repo = self.get_repository(location, msg.is_directory)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/windowactivatable.py", line 282, in get_repository
    return self.app_activatable.get_repository(location, is_dir)
  File "/usr/lib/x86_64-linux-gnu/gedit/plugins/git/appactivatable.py", line 95, in get_repository
    head = repo.get_head()
gi.repository.GLib.Error: ggit-error: reference 'refs/heads/master' not found (-9)

The reason is simple ~/workspace/form-observer/ is a local-only repository, it has no remotes. But it is weird for me, why this plugin scan subdirectories?

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: gedit-plugin-git 3.30.1-2
Uname: Linux 4.19.2-041902-generic x86_64
ApportVersion: 2.20.10-0ubuntu13.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Nov 18 12:18:27 2018
InstallationDate: Installed on 2018-03-27 (235 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180327)
SourcePackage: gedit-plugins
UpgradeStatus: Upgraded to cosmic on 2018-10-19 (29 days ago)

Revision history for this message
Dmitriy Geels (dmig) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gedit-plugins (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.