tiddly-gittly / TidGi-Desktop

TidGi is an privacy-in-mind, automated, auto-git-backup, freely-deployed knowledge management Desktop note app, based on Tiddlywiki, with REST API for web-clipping and Anki connect. 「 太记 」是一个基于「 太微 TiddlyWiki 」的知识管理桌面应用,能保护隐私内容、高级自动化、自动Git云备份、部署为博客,且可通过RESTAPI与Anki等应用连接。(迭代开发中欢迎试用,开发进度见下方链接)(Under active development, see website below for details)
https://tidgi.fun
Mozilla Public License 2.0
1.74k stars 111 forks source link

bug: 只读模式拉取了变更,但是比较中却觉得没变更 #515

Open linonetwo opened 9 months ago

linonetwo commented 9 months ago

Environment 环境信息

No response

Description 描述

No response

Steps to Reproduce 复现方式

开了只读模式,并填了token后,在博客服务器电脑上

Additional Context 额外上下文

{"callerFunction":"forcePull","dir":"D:\\wiki\\linonetwo-wiki","functionName":"getSyncState","level":"debug","message":"Checking sync state with upstream, command: `git rev-list --count --left-right origin/master...HEAD` , stdout:\n0\t0\n\n(stdout end)","step":"CheckingLocalSyncState","timestamp":"2024-01-24T13:13:37.728Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\linonetwo-wiki","functionName":"forcePull","level":"debug","message":"syncState in dir D:\\wiki\\linonetwo-wiki is equal","remoteUrl":"https://github.com/linonetwo/wiki","step":"StartFetchingFromGithubRemote","timestamp":"2024-01-24T13:13:37.728Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\linonetwo-wiki","functionName":"forcePull","handler":"wiki-sync-progress","id":"JoOk6G4SNfmC3aN1kxdG6","level":"info","message":"跳过强制拉取,远端没有更新","remoteUrl":"https://github.com/linonetwo/wiki","step":"SkipForcePull","timestamp":"2024-01-24T13:13:37.728Z"}
linonetwo commented 9 months ago

官网就可以

{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"开始强制拉取远端内容,将完全覆盖本地","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"StartForcePull","timestamp":"2024-01-24T13:17:46.998Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","level":"debug","message":"Do preflight Check before force pull in dir D:\\wiki\\TidGi-Official-Website","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"StartForcePull","timestamp":"2024-01-24T13:17:46.999Z"}
{"callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"getGitDirectory","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"正在检测本地 Git 仓库是否正确地初始化了","step":"CheckingLocalGitRepoSanity","timestamp":"2024-01-24T13:17:47.105Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"准备同步,使用登录的作者信息","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"PrepareSync","timestamp":"2024-01-24T13:17:47.322Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","level":"debug","message":"D:\\wiki\\TidGi-Official-Website repoStartingState: , linonetwo <linonetwo012@gmail.com>","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"PrepareSync","timestamp":"2024-01-24T13:17:47.322Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"仓库初始化完毕,开始配置 Git 云端仓库","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"StartConfiguringGithubRemoteRepository","timestamp":"2024-01-24T13:17:47.323Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"正在拉取Github远端仓库的数据,需要的时间取决于网速和仓库大小,请耐心等待","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"StartFetchingFromGithubRemote","timestamp":"2024-01-24T13:17:47.441Z"}
{"callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"getSyncState","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"正在检测本地状态是否需要同步到云端","step":"CheckingLocalSyncState","timestamp":"2024-01-24T13:17:49.187Z"}
{"callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"getSyncState","level":"debug","message":"Checking sync state with upstream, command: `git rev-list --count --left-right origin/master...HEAD` , stdout:\n2\t0\n\n(stdout end)","step":"CheckingLocalSyncState","timestamp":"2024-01-24T13:17:49.243Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","level":"debug","message":"syncState in dir D:\\wiki\\TidGi-Official-Website is behind","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"StartFetchingFromGithubRemote","timestamp":"2024-01-24T13:17:49.243Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"开始清空本地并用远端内容覆盖","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"StartResettingLocalToRemote","timestamp":"2024-01-24T13:17:49.243Z"}
{"branch":"master","callerFunction":"forcePull","dir":"D:\\wiki\\TidGi-Official-Website","functionName":"forcePull","handler":"wiki-sync-progress","id":"Z-LXjxazeTjWowmu_6WOJ","level":"info","message":"强制拉取完成","remoteUrl":"https://github.com/tiddly-gittly/TidGi-Official-Website","step":"FinishForcePull","timestamp":"2024-01-24T13:17:49.323Z"}
{"level":"info","message":"Restarting workspace Z-LXjxazeTjWowmu_6WOJ","timestamp":"2024-01-24T13:17:49.378Z"}