summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2012-03-01 10:32:54 +0000
committerLars Wirzenius <liw@liw.fi>2012-03-01 10:32:54 +0000
commit3f1084fff5b7bd5d7c50b2a2178df8caea249db8 (patch)
tree65ac3a7d1b99f0167dcb317d0afb799ec0734dcb
parentf56c834c57029b248cc518c90798d194efcf4675 (diff)
downloadobnam-3f1084fff5b7bd5d7c50b2a2178df8caea249db8.tar.gz
Lock first, check format version afterwards.
-rw-r--r--obnamlib/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/repo.py b/obnamlib/repo.py
index 5e464d07..ee40090b 100644
--- a/obnamlib/repo.py
+++ b/obnamlib/repo.py
@@ -264,8 +264,8 @@ class Repository(object):
self.require_no_client_lock()
self.require_no_shared_lock()
- self.check_format_version()
self.lockmgr.lock(['.'])
+ self.check_format_version()
self.got_root_lock = True
self.added_clients = []
self.removed_clients = []