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 摘要。