From 35e1909790d2d9daae782dc9f22c8e4a72329d3d Mon Sep 17 00:00:00 2001 From: mail6543210 Date: Tue, 19 Sep 2017 20:30:15 +0800 Subject: [PATCH] Real fix for #148 --- lib/homesick/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick/cli.rb b/lib/homesick/cli.rb index 43d401f..d339dff 100644 --- a/lib/homesick/cli.rb +++ b/lib/homesick/cli.rb @@ -31,7 +31,7 @@ module Homesick destination = Pathname.new(destination) source = Pathname.new(source) return 'Unable to create diff: destination or content is a directory' if destination.directory? || source.directory? - return super(destination, source) unless destination.symlink? + return super(destination, File.binread(source)) unless destination.symlink? say "- #{destination.readlink}", :red, true say "+ #{source.expand_path}", :green, true end