Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

No items #48

Closed
webmastak opened this issue May 5, 2019 · 2 comments
Closed

No items #48

webmastak opened this issue May 5, 2019 · 2 comments

Comments

@webmastak
Copy link

webmastak commented May 5, 2019

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
Copy link
Owner

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

@webmastak
Copy link
Author

webmastak commented May 5, 2019

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)

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

No branches or pull requests

2 participants