Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Git metadata dropped in a git worktree (.git file with gitdir: pointer not followed)

未关闭
#331 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@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.

Written by Devin

主要语言
Java
星标
88
派生
17
平均合并
2 天 2 小时
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

getappmap/appmap-java 的其他 Issue

查看 getappmap/appmap-java 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。