From 06683fa1f68ec7f7bf59f7b06079e4a1ca069f73 Mon Sep 17 00:00:00 2001 From: tamakyi Date: Tue, 8 Sep 2026 17:25:44 +0800 Subject: [PATCH] =?UTF-8?q?git-sync-web=20=E8=87=AA=E5=8A=A8=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=202026-09-08=2017:25:43?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine.go | 1 + logs/git-auto-sync.log | 7 +++++++ stats/git-auto-sync.csv | 1 + 3 files changed, 9 insertions(+) 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