mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 Sync repo
This commit is contained in:
parent
f0bd79e934
commit
6ea9b21fa3
1 changed files with 2 additions and 0 deletions
|
|
@ -317,6 +317,7 @@ func syncRepo(byHand bool) {
|
|||
}
|
||||
syncContext := map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBar}
|
||||
latest, mergeUpserts, mergeRemoves, err := repo.Sync(cloudInfo, syncContext)
|
||||
|
||||
elapsed := time.Since(start)
|
||||
util.LogInfof("sync data repo elapsed [%.2fs], latest [%s]", elapsed.Seconds(), latest.ID)
|
||||
if nil != err {
|
||||
|
|
@ -330,6 +331,7 @@ func syncRepo(byHand bool) {
|
|||
return
|
||||
}
|
||||
util.PushStatusBar(fmt.Sprintf(Conf.Language(149)+" [%s]", elapsed.Seconds(), latest.ID[:7]))
|
||||
|
||||
if 1 > len(mergeUpserts) && 1 > len(mergeRemoves) { // 没有数据变更
|
||||
syncSameCount++
|
||||
if 10 < syncSameCount {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue