Navigation Menu

Skip to content

Commit

Permalink
Show diff
Browse files Browse the repository at this point in the history
  • Loading branch information
evan committed Nov 4, 2013
1 parent 5e4661d commit e814ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/echoe.rb
Expand Up @@ -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
Expand Down

0 comments on commit e814ce1

Please sign in to comment.