ref: 7867f699d66671b5a79a7962cfa5b651042c673e
parent: 7d6c80d1540f8bc06bc6a31086b3723bed7c95db
author: Runxi Yu <me@runxiyu.org>
date: Sat Mar 7 11:11:56 EST 2026
testgit: While I'm at it, add a tiny path escape hatch just for occasional use
--- a/internal/testgit/repo_properties.go
+++ b/internal/testgit/repo_properties.go
@@ -11,3 +11,10 @@
func (testRepo *TestRepo) Env() []string {return append([]string(nil), testRepo.env...)
}
+
+// DirButYouShouldReallyNotUseThisOkay returns the git dir of a repo.
+// Consider using a properly capability interface such as
+// os.Root instead; all uses of ambient path authority must be justified.
+func (testRepo *TestRepo) DirButYouShouldReallyNotUseThisOkay() string {+ return testRepo.dir
+}
--
⑨