bugranger - Bugs: bug #43473, ranger throws exception when /etc...


bug #43473: ranger throws exception when /etc is version controlled by etckeeper

Submitted by:  None
Submitted on:  Sat 25 Oct 2014 02:22:25 PM UTC  
Severity:  3 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sat 25 Oct 2014 02:22:25 PM UTC, original submission:  

On my Fedora box, ranger 1.6.1 will throw exceptions as follows when /etc directory is version controlled by git (etckeeper).

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ranger/core/main.py", line 133, in main
  File "/usr/lib/python2.7/site-packages/ranger/core/fm.py", line 288, in loop
  File "/usr/lib/python2.7/site-packages/ranger/core/actions.py", line 450, in enter_dir
    result = self.thistab.enter_dir(path, history=history)
  File "/usr/lib/python2.7/site-packages/ranger/core/tab.py", line 141, in enter_dir
  File "/usr/lib/python2.7/site-packages/ranger/core/tab.py", line 90, in assign_cursor_positions_for_subdirs
  File "/usr/lib/python2.7/site-packages/ranger/container/directory.py", line 435, in move_to_obj
  File "/usr/lib/python2.7/site-packages/ranger/container/directory.py", line 488, in load_content_once
    self.load_content(*a, **k)
  File "/usr/lib/python2.7/site-packages/ranger/container/directory.py", line 333, in load_content
    for _ in self.load_generator:
  File "/usr/lib/python2.7/site-packages/ranger/container/directory.py", line 263, in load_bit_by_bit
  File "/usr/lib/python2.7/site-packages/ranger/container/fsobject.py", line 264, in load_vcs
    (self.path, err), bad=True)
  File "/usr/lib/python2.7/site-packages/ranger/core/actions.py", line 121, in notify
    raise Exception(str(text))
Exception: Can not load vcs data on /etc: git error on /etc. Command: git status --porcelain

The issue is /etc/.git cannot be accessed by a normal user. IMO in such case at most a warning rather than an error should be throwed out. It is particularly annoying since I am going to debug an encoding issue, and this error makes "ranger -d" abort early...



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.7