Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)
@dividedmind 已經在處理了。
開始於 2026年10月8日。
評估
這個 Issue 還沒有評估資料。
描述
Summary
Recording inside a git worktree makes the agent drop all git metadata, with a warning on every recording. Worktrees are the natural way to hold BASE and HEAD for a two-revision comparison (the appmap-review / gold-traces workflow), so this is the flagship workflow losing commit metadata.
Agent 1.30.1, Ubuntu, Java 17, spring-petclinic @ b26f235, Maven Surefire.
Repro
git clone https://github.com/spring-projects/spring-petclinic && cd spring-petclinic
git worktree add ../petclinic-base b26f235
cd ../petclinic-base
mvn -Dtest=PetClinicIntegrationTests#testOwnerDetails test # agent attached via -javaagent
Observed
Twice per test run:
AppMap WARN: Current git repository is an unsupported configuration.
No git metadata will be collected, and source paths may be incorrect.
The recordings have no metadata.git. The same test in the main checkout records git.commit, git.branch, etc.
Cause
In a worktree .git is a file containing gitdir: /path/to/repo/.git/worktrees/<name>, not a directory. The agent's repository detection expects a directory and does not follow the pointer.
Expected
Follow the gitdir: pointer (and its commondir) and collect metadata as in a normal checkout. If worktrees will not be supported, the docs/skills should say to use two full clones.
- 主要語言
- Java
- 星號
- 88
- 分支
- 17
- 平均合併
- 2 天 2 小時
- 30 天內合併 PR
- 1
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
getappmap/appmap-java 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 28/100
getappmap/appmap-java#333 ·
-
appmap.yml packages path matching zero classes yields a healthy-looking recording with no warning未關閉
難度 3/5 1-2 天 新手友好度 45/100
getappmap/appmap-java#332 · 1 則留言 ·
-
Labeled methods should always be recorded, even if they match trivial-method filters可能已有人在做 @kgilpin 於 192 天前認領。 未關閉
getappmap/appmap-java#323 · 1 個 reaction · 已指派 2 人 ·
-
難度 3/5 1-2 天 新手友好度 35/100
getappmap/appmap-java#322 ·
-
難度 5/5 一週以上 新手友好度 35/100
getappmap/appmap-java#308 ·
查看 getappmap/appmap-java 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
objectionary/eo-graphs#80 ·
-
難度 2/5 1-3 小時 新手友好度 78/100
objectionary/jucs#141 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
-
bug good first issue
難度 2/5 1-3 小時 新手友好度 88/100
repowise-dev/repowise#3335 ·
維護者通常 1 天內回覆