about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-24 23:10:37 +0100
committerhut <hut@lavabit.com>2013-02-24 23:10:37 +0100
commitb108021d64010dbd4677dc24729680a8ab90fb04 (patch)
treed19a42126f70cf1b412da2978ae24d31adafe0b3
parent3d8af3624e773371e6af58745daba096e77e5166 (diff)
downloadranger-b108021d64010dbd4677dc24729680a8ab90fb04.tar.gz
fsobject.directory: dont load_vcs when not needed
-rw-r--r--ranger/fsobject/directory.py5
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: