🎨 Sync repo

This commit is contained in:
Liang Ding 2022-07-02 10:39:20 +08:00
parent 95caa3d9c9
commit 446a45929b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 9 additions and 9 deletions

View file

@ -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,
})