sync: Try to improve git-lfs support

This commit is contained in:
nemunaire 2021-12-07 16:33:11 +01:00
commit e6d8f2db1b
3 changed files with 19 additions and 10 deletions

View file

@ -243,12 +243,6 @@ func SyncExercice(i Importer, theme *fic.Theme, epath string, dmap *map[int64]*f
// SyncExercices imports new or updates existing exercices, in a given theme.
func SyncExercices(i Importer, theme *fic.Theme) (errs []string) {
if !avoidImporterSync() {
if err := i.Sync(); err != nil {
errs = append(errs, err.Error())
}
}
if exercices, err := GetExercices(i, theme); err != nil {
errs = append(errs, err.Error())
} else {