diff options
| author | 2026-02-21 15:29:40 +0800 | |
|---|---|---|
| committer | 2026-02-21 15:29:40 +0800 | |
| commit | 673902b14458f32fbf47efa3757279872bdfcb7e (patch) | |
| tree | cdcae5d8c7ee01e4931a306931fc79c01c1ea406 /refstore/loose | |
| parent | repository: Add passthrough ReadStored*; add ref convenience funcs (diff) | |
| signature | No signature | |
repository, {ref,object}store: Make stores own their roots
Diffstat (limited to 'refstore/loose')
| -rw-r--r-- | refstore/loose/store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/refstore/loose/store.go b/refstore/loose/store.go index 8eb485e9..e4dc3a34 100644 --- a/refstore/loose/store.go +++ b/refstore/loose/store.go @@ -10,7 +10,7 @@ import ( // Store reads loose references from a repository root. // -// Store does not own root. Callers are responsible for closing root. +// Store owns root and closes it in Close. type Store struct { // root is the repository root capability. root *os.Root @@ -33,5 +33,5 @@ func New(root *os.Root, algo objectid.Algorithm) (*Store, error) { // Close releases resources associated with the backend. func (store *Store) Close() error { - return nil + return store.root.Close() } |
