sync: Don't pull repo when doing synchronization. Do it only on auto-sync
This commit is contained in:
parent
ac64db277a
commit
5fb85c22dc
5 changed files with 17 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue