sync: Don't pull repo when doing synchronization. Do it only on auto-sync

This commit is contained in:
nemunaire 2023-05-06 02:27:46 +02:00
commit 5fb85c22dc
5 changed files with 17 additions and 16 deletions

View file

@ -107,6 +107,9 @@ func (i GitImporter) Init() error {
}
func (i GitImporter) Sync() error {
oneGitPull.Lock()
defer oneGitPull.Unlock()
r, err := git.PlainOpen(i.li.Base)
if err != nil {
return err