Revert "Use source content instead of source path (fixes: #148)"

This reverts commit ed397bdaf8.
This commit is contained in:
mail6543210
2017-09-19 20:26:01 +08:00
committed by Jeremy Cook
parent ae343c4cab
commit fdf2da84dd

View File

@@ -150,7 +150,7 @@ module Homesick
def collision_accepted?(destination, source)
fail "Arguments must be instances of Pathname, #{destination.class.name} and #{source.class.name} given" unless destination.instance_of?(Pathname) && source.instance_of?(Pathname)
options[:force] || shell.file_collision(destination) { File.binread(source) }
options[:force] || shell.file_collision(destination) { source }
end
def each_file(castle, basedir, subdirs)