Title: Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed) · Issue #331 · getappmap/appmap-java · GitHub
Open Graph Title: Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed) · Issue #331 · getappmap/appmap-java
X Title: Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed) · Issue #331 · getappmap/appmap-java
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...
Open Graph 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 (...
X 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 (...
Opengraph URL: https://github.com/getappmap/appmap-java/issues/331
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)","articleBody":"## Summary\nRecording 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.\n\nAgent 1.30.1, Ubuntu, Java 17, spring-petclinic @ b26f235, Maven Surefire.\n\n## Repro\n```sh\ngit clone https://github.com/spring-projects/spring-petclinic && cd spring-petclinic\ngit worktree add ../petclinic-base b26f235\ncd ../petclinic-base\nmvn -Dtest=PetClinicIntegrationTests#testOwnerDetails test # agent attached via -javaagent\n```\n\n## Observed\nTwice per test run:\n```\nAppMap WARN: Current git repository is an unsupported configuration.\nNo git metadata will be collected, and source paths may be incorrect.\n```\nThe recordings have no `metadata.git`. The same test in the main checkout records `git.commit`, `git.branch`, etc.\n\n## Cause\nIn a worktree `.git` is a *file* containing `gitdir: /path/to/repo/.git/worktrees/\u003cname>`, not a directory. The agent's repository detection expects a directory and does not follow the pointer.\n\n## Expected\nFollow 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.\n\n[Written by Devin](https://app.devin.ai/sessions/0bd45e4064184bbfb6c77cb739038959)\n","author":{"url":"https://github.com/apps/devin-ai-integration","@type":"Person","name":"devin-ai-integration"},"datePublished":"2026-10-08T11:52:45Z","url":"https://github.com/getappmap/appmap-java/issues/331"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f9696fa2-15a1-5e3f-06f7-6c95dca1e555 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A734:21F90C:17A3065:1E123C4:6B030FCA |
| html-safe-nonce | a4f9a06c8622f47ea9157c2a22144cffd1ac75b335ef1be93be94a57366a8c60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzM0OjIxRjkwQzoxN0EzMDY1OjFFMTIzQzQ6NkIwMzBGQ0EiLCJ2aXNpdG9yX2lkIjoiODYzNjQ1OTEzNTUzOTU0ODEwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d55b00e614a40e535e0115e1d26800ca536b77f18efa91c4e1042cc16f7cb6f9 |
| hovercard-subject-tag | issue:5761268088 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getappmap/appmap-java/331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/91055fc07a5728a3132eac1fdc53005afe6f1433e27dbd507084e907ebd52bea/getappmap/appmap-java/issues/331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/91055fc07a5728a3132eac1fdc53005afe6f1433e27dbd507084e907ebd52bea/getappmap/appmap-java/issues/331 |
| og:image:alt | 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 (... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | devin-ai-integration[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/getappmap/appmap-java git https://github.com/getappmap/appmap-java.git |
| octolytics-dimension-user_id | 46610017 |
| octolytics-dimension-user_login | getappmap |
| octolytics-dimension-repository_id | 210409994 |
| octolytics-dimension-repository_nwo | getappmap/appmap-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 210409994 |
| octolytics-dimension-repository_network_root_nwo | getappmap/appmap-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width