🎨 Sync repo

This commit is contained in:
Liang Ding
2022-07-01 23:04:28 +08:00
parent a3f7e0f671
commit 23c6cf3b38

View File

@@ -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: 测试