Allow symlinking existing directories into repos, instead of cloning.

This commit is contained in:
Joshua Nichols
2010-04-01 21:19:25 -04:00
parent 5ac2a0739a
commit 9a22513ba4
3 changed files with 15 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ class Homesick
end
def ln_s(source, destination, config = {})
source = Pathname.new(source)
destination = Pathname.new(destination)
if destination.symlink?