From: Lucas Di Pentima Date: Tue, 21 May 2019 13:42:00 +0000 (-0300) Subject: 14946: Updates pattern matching because of newer git message changes. X-Git-Tag: 2.0.0~308^2~11 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/d96646a3a239e0e581659ae3c7a1f971c023f649 14946: Updates pattern matching because of newer git message changes. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/services/api/app/models/commit.rb b/services/api/app/models/commit.rb index a3cef64212..2f7e9cd934 100644 --- a/services/api/app/models/commit.rb +++ b/services/api/app/models/commit.rb @@ -235,7 +235,7 @@ class Commit < ActiveRecord::Base begin must_git gitdir, "branch" rescue GitError => e - raise unless /Not a git repository/ =~ e.to_s + raise unless /Not a git repository/i =~ e.to_s # OK, this just means we need to create a blank cache repository # before fetching. FileUtils.mkdir_p gitdir