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
|
|
@ -96,6 +96,9 @@ func (i GitImporter) Init() error {
|
|||
}
|
||||
|
||||
func (i GitImporter) Sync() error {
|
||||
oneGitPull.Lock()
|
||||
defer oneGitPull.Unlock()
|
||||
|
||||
log.Println("Synchronizing local git repository...")
|
||||
cmdfetch := exec.Command("git", "-C", i.li.Base, "fetch", "origin")
|
||||
stdout, err := cmdfetch.CombinedOutput()
|
||||
|
|
|
|||
Reference in a new issue