aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py
index 90a9ba4..21c96fd 100644
--- a/dotfiles/core.py
+++ b/dotfiles/core.py
@@ -217,12 +217,13 @@ class Dotfiles(object):
def move(self, target):
"""Move the repository to another location."""
+ target = realpath_expanduser(target)
if os.path.exists(target):
raise ValueError('Target already exists: %s' % (target))
if not self.dry_run:
- shutil.copytree(self.repository, target)
+ shutil.copytree(self.repository, target, symlinks=True)
shutil.rmtree(self.repository)
else:
print("Recursive copy %s => %s" % (self.repository, target))