From e814ce171b75e7803d00428691855357dcabc5aa Mon Sep 17 00:00:00 2001 From: Evan Weaver Date: Mon, 4 Nov 2013 12:37:22 -0800 Subject: [PATCH] Show diff --- lib/echoe.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/echoe.rb b/lib/echoe.rb index 366817e..559a8f0 100644 --- a/lib/echoe.rb +++ b/lib/echoe.rb @@ -495,9 +495,9 @@ def define_tasks git_branch = nil if (File.exist?(".git")) git_branch = `git branch --no-color | egrep '^\\*' | awk '{print $2}'`.chomp - if (deal = `git diff origin/#{git_branch}`).any? - puts deal.inspect + if (diff = `git diff origin/#{git_branch}`).any? puts "You need to commit and push your changes first." + puts diff exit(1) end end