diff options
author | hut <hut@lavabit.com> | 2013-02-24 23:10:37 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-24 23:10:37 +0100 |
commit | b108021d64010dbd4677dc24729680a8ab90fb04 (patch) | |
tree | d19a42126f70cf1b412da2978ae24d31adafe0b3 /ranger | |
parent | 3d8af3624e773371e6af58745daba096e77e5166 (diff) | |
download | ranger-b108021d64010dbd4677dc24729680a8ab90fb04.tar.gz |
fsobject.directory: dont load_vcs when not needed
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/fsobject/directory.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ranger/fsobject/directory.py b/ranger/fsobject/directory.py index c7e58a54..9bd728c1 100644 --- a/ranger/fsobject/directory.py +++ b/ranger/fsobject/directory.py @@ -227,8 +227,9 @@ class Directory(FileSystemObject, Accumulator, Loadable, SettingsAware): files = [] disk_usage = 0 - self.has_vcschild = False - self.load_vcs() + if self.settings.vcs_aware: + self.has_vcschild = False + self.load_vcs() for name in filenames: try: |