diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-07-30 18:03:31 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-07-30 18:03:31 +0100 |
commit | 8d49b6838f7dfc2e72808752735cc6ee224ffcb0 (patch) | |
tree | 1a9a2e0486dc5a781bedd1e41eef84d1929c4450 /lib/tasks | |
parent | 5d9d46aec1bf4a6b77ccea635eaa089a5f271b88 (diff) |
Get first character in a way that will work in Ruby 1.8 and 1.9
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/submodules.rake | 2 |
1 files changed, 1 insertions, 1 deletions
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." |