Explorar o código

make stash._reflog_path a property

Peter Rowlands %!s(int64=4) %!d(string=hai) anos
pai
achega
1039e7c0de
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      dulwich/stash.py

+ 4 - 1
dulwich/stash.py

@@ -44,7 +44,10 @@ class Stash(object):
     def __init__(self, repo, ref=DEFAULT_STASH_REF):
         self._ref = ref
         self._repo = repo
-        self._reflog_path = os.path.join(
+
+    @property
+    def _reflog_path(self):
+        return os.path.join(
             self._repo.commondir(), "logs", os.fsdecode(self._ref)
         )