aboutsummaryrefslogtreecommitdiff
path: root/internal/testgit
diff options
context:
space:
mode:
Diffstat (limited to 'internal/testgit')
-rw-r--r--internal/testgit/repo_properties.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/testgit/repo_properties.go b/internal/testgit/repo_properties.go
index 703cef1c..e99281ec 100644
--- a/internal/testgit/repo_properties.go
+++ b/internal/testgit/repo_properties.go
@@ -11,3 +11,10 @@ func (testRepo *TestRepo) Algorithm() objectid.Algorithm {
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
+}