X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/68bdf4cbb1d2c22d689b1d74a1c2a77415921b4d..a8bfbac314335eb0bff3f4ff5e856d3c327de31d:/services/api/app/models/commit.rb diff --git a/services/api/app/models/commit.rb b/services/api/app/models/commit.rb index b0efbc7cb0..921c690cd0 100644 --- a/services/api/app/models/commit.rb +++ b/services/api/app/models/commit.rb @@ -2,10 +2,12 @@ # # SPDX-License-Identifier: AGPL-3.0 +require 'request_error' + class Commit < ActiveRecord::Base extend CurrentApiClient - class GitError < StandardError + class GitError < RequestError def http_status 422 end @@ -219,7 +221,7 @@ class Commit < ActiveRecord::Base end def self.cache_dir_base - Rails.root.join 'tmp', 'git' + Rails.root.join 'tmp', 'git-cache' end def self.fetch_remote_repository gitdir, git_url