Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)
@dividedmind ci sta già lavorando.
Dal 8/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- Java
- Stelle
- 88
- Fork
- 17
- Merge medio
- 2g 2h
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getappmap/appmap-java
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
getappmap/appmap-java#333 ·
-
appmap.yml packages path matching zero classes yields a healthy-looking recording with no warningAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
getappmap/appmap-java#332 · 1 commento ·
-
Labeled methods should always be recorded, even if they match trivial-method filtersForse già presa @kgilpin l’ha presa 192 giorni fa. Aperta
getappmap/appmap-java#323 · 1 reazione · 2 assegnatari ·
-
Warning with Java 25Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
getappmap/appmap-java#322 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
getappmap/appmap-java#308 ·
Tutte le issue di getappmap/appmap-java
Issue simili
-
Clock.MakeDate continues execution and returns a rolled-over instant after dispatching error on invalid dateForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
mit-cml/appinventor-sources#4155 ·
I maintainer di solito rispondono entro 1 giorno
-
[Doc] - Creation du READMEAperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 62/100
Hira-shi/PW1-DAI-Carrel-Egal-Eyer#28 ·
I maintainer di solito rispondono entro 1 giorno
-
`GET /v1/event/token/{uuid}` can report a BOM upload as done before policy evaluation and metrics have finishedForse già presa @Zargath l’ha presa oggi. Apertadefect in triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
DependencyTrack/dependency-track#7646 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
floci-io/floci#5425 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
objectionary/eo-graphs#80 ·