projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into origin-2608-websocket-event-bus-alt2
[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 49541248f28cf5b4f677710aa30f03991a2fa6af..6239011a1bda462dca713feec0bc18250025e54b 100644
(file)
--- 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 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
repo_name = repo.sub(/\.git$/, '')
@repositories[repo_name] = {git_dir: git_dir}
end