projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '14946-ruby-2.5'
[arvados.git]
/
services
/
api
/
app
/
models
/
commit.rb
diff --git
a/services/api/app/models/commit.rb
b/services/api/app/models/commit.rb
index a3cef64212ba04122b28148482a03c3b431470cb..2f7e9cd9345ff347c9f5bee05abe58a113dd267b 100644
(file)
--- 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
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
# OK, this just means we need to create a blank cache repository
# before fetching.
FileUtils.mkdir_p gitdir