From 6454c96e6ae7281e3b3433388a0e2cdb26763a59 Mon Sep 17 00:00:00 2001 From: Arfon Smith Date: Sun, 6 Jul 2014 22:10:43 -0500 Subject: [PATCH] Abort --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 9e7e4091..6c109d6b 100644 --- a/Rakefile +++ b/Rakefile @@ -29,8 +29,8 @@ namespace :benchmark do desc "Testin'" task :run do reference, compare = ENV['compare'].split('...') - puts "Comparing #{reference}...#{current}" - puts "Unstaged changes" and return if git.status.changed.any? + puts "Comparing #{reference}...#{compare}" + abort("Unstaged changes") if git.status.changed.any? # Get the current branch # Would like to get this from the Git gem