Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)
@dividedmind y travaille déjà.
Depuis le 8/10/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
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.
- Langage dominant
- Java
- Étoiles
- 88
- Forks
- 17
- Merge moyen
- 2 j 2 h
- PR mergées (30 j)
- 1
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de getappmap/appmap-java
-
Difficulté 4/5 3-5 jours Accessibilité débutants 28/100
getappmap/appmap-java#333 ·
-
appmap.yml packages path matching zero classes yields a healthy-looking recording with no warningOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
getappmap/appmap-java#332 · 1 commentaire ·
-
Labeled methods should always be recorded, even if they match trivial-method filtersPeut-être pris @kgilpin l’a pris il y a 192 jours. Ouverte
getappmap/appmap-java#323 · 1 réaction · 2 personnes assignées ·
-
Warning with Java 25Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
getappmap/appmap-java#322 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
getappmap/appmap-java#308 ·
Toutes les issues de getappmap/appmap-java
Issues similaires
-
enhancement good first issue
Difficulté 2/5 Une demi-journée Accessibilité débutants 66/100
apache/fineract-consumer-facing#175 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG] 订单:会员凭订单号即可取消其他会员的待付款订单(取消接口不校验订单归属)Peut-être pris @dadiyang l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
macrozheng/mall#1016 ·
-
[Bug] The producer summary counts an unreported client version as a second version and warns about a version mixPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
apache/rocketmq-dashboard#6110 ·
Les mainteneurs répondent en général sous 4 jours
-
Feature:Resolution
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
intellij-elixir/intellij-elixir#4396 ·
Les mainteneurs répondent en général sous 1 jour
-
Python 3.15 supportPeut-être pris @amnesiaof l’a pris aujourd’hui. OuverteL: python L: python:uv
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
dependabot/dependabot-core#16524 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour