X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/402461a12dbff7d0ec00c8446b925b021aabc2ed..f60b9d7057fef32a7b61ea4de55b3d95b5b28f6c:/services/api/app/models/commit.rb diff --git a/services/api/app/models/commit.rb b/services/api/app/models/commit.rb index 49541248f2..6239011a1b 100644 --- a/services/api/app/models/commit.rb +++ b/services/api/app/models/commit.rb @@ -139,6 +139,7 @@ class Commit < ActiveRecord::Base next if repo.match /^\./ git_dir = File.join(@gitdirbase, repo.match(/\.git$/) ? repo : File.join(repo, '.git')) + next if git_dir == Rails.configuration.git_internal_dir repo_name = repo.sub(/\.git$/, '') @repositories[repo_name] = {git_dir: git_dir} end