From 474d69da0b4bbe07389e5a8c05c1af4ed6cee762 Mon Sep 17 00:00:00 2001 From: mail6543210 Date: Tue, 19 Sep 2017 20:26:01 +0800 Subject: [PATCH] Revert "Use source content instead of source path (fixes: #148)" This reverts commit ed397bdaf8ccde86a4b39863f2b68254f8a5c9bc. --- lib/homesick/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick/utils.rb b/lib/homesick/utils.rb index 701ec2a..e18cd17 100644 --- a/lib/homesick/utils.rb +++ b/lib/homesick/utils.rb @@ -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)