From 23c6cf3b38f3c8dc3a74fcdc517a65e1e669ac0f Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 1 Jul 2022 23:04:28 +0800 Subject: [PATCH] :art: Sync repo --- kernel/model/sync.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index ce10e86ed..6758838b7 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -136,11 +136,9 @@ func SyncData(boot, exit, byHand bool) { // 创建数据快照 https://github.com/siyuan-note/siyuan/issues/5161 indexRepoBeforeCloudSync() - if !boot && !exit && byHand { - // 同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5142 - if syncRepoErr := syncRepo(); nil != syncRepoErr { - util.LogErrorf("sync repo failed: %s", syncRepoErr) - } + // 同步数据仓库 https://github.com/siyuan-note/siyuan/issues/5142 + if syncRepoErr := syncRepo(); nil != syncRepoErr { + util.LogErrorf("sync repo failed: %s", syncRepoErr) } return // TODO: 测试