mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Abort
This commit is contained in:
4
Rakefile
4
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
|
||||
|
||||
Reference in New Issue
Block a user