bug: git-worktree 在默认分支不是 main 的目标仓库中会选错或选不到 base
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- git
- Área
- tooling
Línea de trabajo
Read .agents/skills/git-worktree/SKILL.md at line 21 and compare it with the documented base selection in the git-branch skill and the README’s install behavior. Check how base selection handles repositories whose default branch is not main; done means worktree creation uses the target repository’s documented default base when available and has a defined fallback.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
问题位置
.agents/skills/git-worktree/SKILL.md:21
触发条件
通过 install.sh 接入的目标仓库默认分支为 master、trunk 等其他名称,用户执行 $git-worktree 且未自行指定 main。
实际影响
如果 origin/main 和本地 main 都不存在,创建 worktree 的命令会失败;如果恰好存在一个陈旧或无关的 main,则 worktree 会从错误分支创建,后续提交和 PR base 都可能错误。
核实依据
第 21 行把默认 base 硬编码为 main,后续只尝试 origin/<base> 和本地 <base>,没有读取仓库默认分支或 origin/HEAD。同仓库的 git-branch SKILL 要求先使用仓库 documented base,否则才回退到 main;README 又明确说明这些 skill 会安装到任意 target repo,因此非 main 默认分支是现实场景。
扫描提交:3a720aab9db9e01a3d53d7ddb4985a2d74e58cbb;扫描日期:2026-11-04(北京时间);轮巡分片:34/90。
- Lenguaje dominante
- Python
- Estrellas
- 171
- Forks
- 24
- Merge medio
- 3 h 13 min
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Terry-Mao/AICodingFlow
-
area:specs area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Terry-Mao/AICodingFlow#378 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug: 否定或疑问的维护者回复会被误判为 dismissAbiertoarea:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Terry-Mao/AICodingFlow#377 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Terry-Mao/AICodingFlow#372 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Terry-Mao/AICodingFlow#371 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:tests area:workflow bug repro:high triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Terry-Mao/AICodingFlow#369 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de Terry-Mao/AICodingFlow
Issues similares
-
essreduce
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
Los mantenedores suelen responder en 1 día
-
[PORT] A2A: map audio file parts to audio content and ignore MIME parameters (TS→Py)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea-a2a bug port python
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
strands-agents/harness-sdk#6697 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
TigreGotico/orthography2ipa#2950 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
TigreGotico/text2spoken#929 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100