mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 05:58:07 +01:00
🎨 Sync repo
This commit is contained in:
parent
95caa3d9c9
commit
446a45929b
3 changed files with 9 additions and 9 deletions
|
|
@ -301,6 +301,9 @@ func syncRepo() (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
CloseWatchAssets()
|
||||
defer WatchAssets()
|
||||
|
||||
start := time.Now()
|
||||
latest, fetchedFiles, err := repo.Sync(Conf.Sync.CloudName, Conf.User.UserId, Conf.User.UserToken, Conf.System.NetworkProxy.String(), util.AliyunServer, map[string]interface{}{
|
||||
CtxPushMsg: CtxPushMsgToStatusBar,
|
||||
|
|
@ -320,9 +323,6 @@ func syncRepo() (err error) {
|
|||
|
||||
// 下载到文件后,需要恢复到工作区并重建索引
|
||||
|
||||
CloseWatchAssets()
|
||||
defer WatchAssets()
|
||||
|
||||
upsertFiles, removeFiles, err := repo.Checkout(latest.ID, map[string]interface{}{
|
||||
CtxPushMsg: CtxPushMsgToStatusBarAndProgress,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue