Skip to content

Commit 4676e72

Browse files
committed
correct git ref matching in Gemfile
1 parent 542e6ca commit 4676e72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source "https://rubygems.org"
33
if version = ENV['AR_VERSION']
44
if version.index('/') && ::File.exist?(version)
55
gem 'activerecord', :path => version
6-
elsif version =~ /[0-9abcdef]*/
6+
elsif version =~ /^[0-9abcdef]+$/
77
gem 'activerecord', :github => 'rails/rails', :ref => version
88
elsif version.index('.').nil?
99
gem 'activerecord', :github => 'rails/rails', :branch => version

0 commit comments

Comments
 (0)