aboutsummaryrefslogtreecommitdiffstats
path: root/dotfiles.py
diff options
context:
space:
mode:
authorGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-06 16:56:23 -0500
committerGravatar Jon Bernard <jbernard@tuxion.com> 2016-01-06 16:57:11 -0500
commit882a2bcaf8902c5dad40b302fedb1a4d17b86019 (patch)
tree6439be633e5fb39c5f88652fdd79ed35aeabec4d /dotfiles.py
parent3ffb368f882d6c7048573cd697595e5084885f9f (diff)
downloaddotfiles-882a2bcaf8902c5dad40b302fedb1a4d17b86019.tar.gz
dotfiles-882a2bcaf8902c5dad40b302fedb1a4d17b86019.tar.bz2
dotfiles-882a2bcaf8902c5dad40b302fedb1a4d17b86019.zip
Fix tests to match recent changes
Diffstat (limited to 'dotfiles.py')
-rw-r--r--dotfiles.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/dotfiles.py b/dotfiles.py
index 233d37e..f868d5b 100644
--- a/dotfiles.py
+++ b/dotfiles.py
@@ -17,7 +17,7 @@ class Repository(object):
"""
def __init__(self, repodir, homedir):
- self.repodir = repodir
+ self.repodir = repodir.ensure(dir=1)
self.homedir = homedir
def __str__(self):
@@ -69,7 +69,6 @@ class Repository(object):
def contents(self):
"""Return a list of all dotfiles in the repository path."""
contents = []
- self.repodir.ensure(dir=1)
for target in self.repodir.listdir():
target = py.path.local(target)
contents.append(Dotfile(self._target_to_name(target), target))