summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-04-05 17:29:07 +0100
committerLars Wirzenius <liw@liw.fi>2011-04-05 17:29:07 +0100
commit03b940d90667defe4a791efc307951386ac2d739 (patch)
treec0f56856fd443870b5e9b9ef95279454fb1350ae
parent45def843209bed1bcebfde31938b6a009b363f33 (diff)
downloadobnam-03b940d90667defe4a791efc307951386ac2d739.tar.gz
Bypass hooks by using filesystem directly to create lock.
-rw-r--r--obnamlib/repo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/obnamlib/repo.py b/obnamlib/repo.py
index 4fef040f..15ffbc6e 100644
--- a/obnamlib/repo.py
+++ b/obnamlib/repo.py
@@ -284,7 +284,7 @@ class Repository(object):
self.check_format_version()
try:
- self.fs.write_file('root.lock', '')
+ self.fs.fs.write_file('root.lock', '')
except OSError, e:
if e.errno == errno.EEXIST:
raise LockFail('Lock file root.lock already exists')