diff options
author | Abdo Roig-Maranges <abdo.roig@gmail.com> | 2013-02-25 18:34:49 +0100 |
---|---|---|
committer | Abdo Roig-Maranges <abdo.roig@gmail.com> | 2013-02-25 18:39:42 +0100 |
commit | 47bc59859328f8fa2c0446a13c3d25acdf946710 (patch) | |
tree | c10637bff1350813b228a2815719aa9e4ca88702 /ranger/fsobject/directory.py | |
parent | da7f543aecebb8ccb61031ebd422710ee7f8d0f5 (diff) | |
download | ranger-47bc59859328f8fa2c0446a13c3d25acdf946710.tar.gz |
make vcs information display for subdirectories of a repo
This fixes the code move in commit 6e46fd77cc8674e3ea360. The block of code that was moved needs to know about, the parent directory (when there is one). This is fixed by passing parent to load_vcs.
Diffstat (limited to 'ranger/fsobject/directory.py')
-rw-r--r-- | ranger/fsobject/directory.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index 3e5e4f84..c7c5150f 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -228,7 +228,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): if self.settings.vcs_aware: self.has_vcschild = False - self.load_vcs() + self.load_vcs(None) for name in filenames: try: @@ -257,7 +257,7 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): # Load vcs data if self.settings.vcs_aware: - item.load_vcs() + item.load_vcs(self) if item.vcs_enabled: self.has_vcschild = True |