Skip to content

Commit c1e580b

Browse files
authored
fix: add missing exclude patterns and skip GPG signing on commit (#4)
- Add backups, cache, chrome, daemon, session-env, temp dirs to excludes - Add mcp-needs-auth-cache.json, scheduled_tasks.lock, .last-cleanup, *.lock to excludes - Fix git commit to pass -c commit.gpgsign=false so push works on machines with global GPG signing enabled
1 parent 093d3fe commit c1e580b

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

internal/config/config.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,23 @@ var DefaultExcludePatterns = []string{
7373
"node_modules",
7474
"paste-cache",
7575
"image-cache",
76+
"backups", // auto .claude.json snapshots created by CC — redundant with claude.json.age
77+
"cache", // CC update/summary cache
78+
"chrome", // machine-specific Chrome native host
79+
"daemon", // machine-specific pipe key
80+
"session-env", // per-invocation env snapshots (14k+ files)
81+
"temp", // temporary files
7682
// Files
7783
"history.jsonl",
7884
"stats-cache.json",
85+
"mcp-needs-auth-cache.json", // ephemeral MCP auth state
86+
"scheduled_tasks.lock", // runtime lock file
87+
".last-cleanup", // timestamp marker
7988
"*.log",
8089
"*.tmp",
8190
"*.cache",
8291
"*.local-backup-*",
92+
"*.lock",
8393
".git",
8494
}
8595

internal/git/git.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ func (g *Git) AddAll() error {
6969

7070
// Commit creates a commit with the given message
7171
func (g *Git) Commit(message string) error {
72-
_, err := g.run("commit", "-m", message)
72+
// -c commit.gpgsign=false avoids failures on machines with GPG signing enabled globally
73+
_, err := g.run("-c", "commit.gpgsign=false", "commit", "-m", message)
7374
return err
7475
}
7576

0 commit comments

Comments
 (0)