bilelmoussaoui / nautilus-git

Nautilus/Nemo extension to add important information about the current git directory
GNU General Public License v3.0
149 stars 9 forks source link

No items #48

Closed webmastak closed 4 years ago

webmastak commented 5 years ago

No items. Streaked on the screenshot. How to activate them?

https://i.imgur.com/ruuT6tD.jpg

nautilus 3.30
python2-nautilus 1.2.2-3
nautilus-git 1.3-1
git version 2.21.0
bilelmoussaoui commented 5 years ago

You can't active those, it just give you an indicator of how many files you have changed on the current git repository.

webmastak commented 5 years ago

SOLVED, subject can be closed.

In file: /usr/share/nautilus-git/src/models/git.py Because of the Russian localization of the command, grep was empty.

        modified = execute("git status | grep 'modified:'", self.dir)
        removed = execute("git status | grep 'deleted:'", self.dir)
        added = execute("git status | grep 'new file:'", self.dir)

Replaced with this and everything worked as it should.

        modified = utils.execute("git status | grep 'изменено:'", self.dir)
        removed = utils.execute("git status | grep 'удалено:'", self.dir)
        added = utils.execute("git status | grep 'новый файл:'", self.dir)