admin: Use branch main instead of master

This commit is contained in:
nemunaire 2022-11-06 13:27:19 +01:00
parent 8e1b3bede0
commit cd07bec05b

View File

@ -168,7 +168,7 @@ func (i GitImporter) GetThemeLink(th *fic.Theme) (u *url.URL, err error) {
return
}
u.Path = path.Join(u.Path, "-", "tree", "master", strings.TrimPrefix(th.Path, prefix))
u.Path = path.Join(u.Path, "-", "tree", "main", strings.TrimPrefix(th.Path, prefix))
return
}
@ -204,7 +204,7 @@ func (i GitImporter) GetExerciceLink(e *fic.Exercice) (u *url.URL, err error) {
return
}
u.Path = path.Join(u.Path, "-", "tree", "master", strings.TrimPrefix(e.Path, prefix))
u.Path = path.Join(u.Path, "-", "tree", "main", strings.TrimPrefix(e.Path, prefix))
return
}