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'"
|
desc "Testin'"
|
||||||
task :run do
|
task :run do
|
||||||
reference, compare = ENV['compare'].split('...')
|
reference, compare = ENV['compare'].split('...')
|
||||||
puts "Comparing #{reference}...#{current}"
|
puts "Comparing #{reference}...#{compare}"
|
||||||
puts "Unstaged changes" and return if git.status.changed.any?
|
abort("Unstaged changes") if git.status.changed.any?
|
||||||
|
|
||||||
# Get the current branch
|
# Get the current branch
|
||||||
# Would like to get this from the Git gem
|
# Would like to get this from the Git gem
|
||||||
|
|||||||
Reference in New Issue
Block a user