diff --git a/engine.go b/engine.go index 8c96cfe..6d8d4ab 100644 --- a/engine.go +++ b/engine.go @@ -8,6 +8,7 @@ import ( "os" "path/filepath" "regexp" + "runtime/debug" "sort" "strconv" "strings" diff --git a/logs/git-auto-sync.log b/logs/git-auto-sync.log index 27815ba..397f5c0 100644 --- a/logs/git-auto-sync.log +++ b/logs/git-auto-sync.log @@ -45,3 +45,10 @@ error: failed to push some refs to 'https://git.shiroko.one/tamakyi/github-auto- [2026-09-08 17:23:16] === 同步完成(本地领先 0,落后 0)=== [2026-09-08 17:24:17] === 开始同步(定时检查,模式 push)=== [2026-09-08 17:24:25] 检测到 2 个未提交改动,执行自动提交 +[2026-09-08 17:24:29] 自动提交完成,将随本轮同步推送 +[2026-09-08 17:24:31] 远程分支 origin/main 不存在(远程仓库可能为空或分支名不一致),将推送本地 7 个提交以建立远程分支 +[2026-09-08 17:24:33] 推送至 origin 失败: error: src refspec main does not match any +error: failed to push some refs to 'https://git.shiroko.one/tamakyi/github-auto-sync-golang' +[2026-09-08 17:24:34] === 同步完成(本地领先 0,落后 0)=== +[2026-09-08 17:25:34] === 开始同步(定时检查,模式 push)=== +[2026-09-08 17:25:42] 检测到 3 个未提交改动,执行自动提交 diff --git a/stats/git-auto-sync.csv b/stats/git-auto-sync.csv index b19304c..1406aa7 100644 --- a/stats/git-auto-sync.csv +++ b/stats/git-auto-sync.csv @@ -5,3 +5,4 @@ timestamp,action,result,commits 2026-09-08 17:20:42,push,failed,4 2026-09-08 17:21:58,push,failed,5 2026-09-08 17:23:16,push,failed,6 +2026-09-08 17:24:33,push,failed,7