fix issue: git lfs config is skipped when git dir exists
diff --git a/project.py b/project.py
index 2228234..e9d0bd1 100644
--- a/project.py
+++ b/project.py
@@ -2225,10 +2225,10 @@
else:
self.config.SetString('core.bare', None)
- if self.lfs_fetch:
- self.config.SetString('filter.lfs.clean', 'git-lfs clean %f')
- self.config.SetString('filter.lfs.smudge', 'git-lfs smudge %f')
- self.config.SetString('filter.lfs.required', 'true')
+ if self.lfs_fetch:
+ self.config.SetString('filter.lfs.clean', 'git-lfs clean %f')
+ self.config.SetString('filter.lfs.smudge', 'git-lfs smudge %f')
+ self.config.SetString('filter.lfs.required', 'true')
except Exception:
if init_obj_dir and os.path.exists(self.objdir):