From acae4060328773a11a26bc1fdd0d5bc1915e5149 Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Mon, 13 May 2024 23:14:28 +0200 Subject: [PATCH] Maybe fix #326 --- klaus/repo.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/klaus/repo.py b/klaus/repo.py index 2b2315cc..924b1037 100644 --- a/klaus/repo.py +++ b/klaus/repo.py @@ -59,6 +59,14 @@ def __init__(self, path, namespace): def path(self): return self.dulwich_repo.path + @property + def object_store(self): + return self.dulwich_repo.object_store + + @synchronized + def __getitem__(self, key): + return self.dulwich_repo[key] + @property def name(self): return repo_human_name(self.path) @@ -70,10 +78,6 @@ def namespaced_name(self): else: return self.name - @synchronized - def __getitem__(self, key): - return self.dulwich_repo[key] - # TODO: factor out stuff into dulwich @synchronized def get_last_updated_at(self):