ai-git-tools 2.0.77 → 2.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-git-tools",
3
- "version": "2.0.77",
3
+ "version": "2.0.78",
4
4
  "description": "AI-powered Git automation tools for commit messages and PR generation",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -11,9 +11,9 @@ export class GitOperations {
11
11
  */
12
12
  detectReleaseBranches() {
13
13
  try {
14
- // 嘗試同步遠端,失敗就用本機已知的遠端資訊
14
+ // 嘗試同步遠端(含 --prune 以清除已刪除的遠端分支),失敗就用本機已知的遠端資訊
15
15
  try {
16
- execSync('git fetch origin', { stdio: 'ignore', timeout: 15000 });
16
+ execSync('git fetch --prune origin', { stdio: 'ignore', timeout: 15000 });
17
17
  } catch (_) {
18
18
  // fetch 失敗,繼續使用已經 cache 的遠端分支
19
19
  }