From 8d49b6838f7dfc2e72808752735cc6ee224ffcb0 Mon Sep 17 00:00:00 2001 From: Louise Crow Date: Tue, 30 Jul 2013 18:03:31 +0100 Subject: Get first character in a way that will work in Ruby 1.8 and 1.9 --- lib/tasks/submodules.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tasks/submodules.rake') diff --git a/lib/tasks/submodules.rake b/lib/tasks/submodules.rake index 6da0ff4b8..4d414ea84 100644 --- a/lib/tasks/submodules.rake +++ b/lib/tasks/submodules.rake @@ -5,7 +5,7 @@ namespace :submodules do task :check => :environment do commit_info = `git submodule status` sha, repo, branch = commit_info.split(' ') - case sha[0] + case sha[0,1] when '+' $stderr.puts "Warning: Currently checked out submodule commit for #{repo}" $stderr.puts "does not match the commit expected by this version of Alaveteli." -- cgit v1.2.3