about summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent3d8af3624e773371e6af58745daba096e77e5166 (diff)
downloadranger-b108021d64010dbd4677dc24729680a8ab90fb04.tar.gz
fsobject.directory: dont load_vcs when not needed
Diffstat (limited to 'ranger')
-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:
30'>130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210