gitlab-org--gitlab-foss/app
Yorick Peterse 6f393877e5
Use File.exist? to check if a repository exists
Initializing Rugged objects is way too expensive just to check if a
repository exists. Even though we cache this data once in a while we
have to refresh this. On GitLab.com we have seen Repository#exists?
taking up to _1 minute_ to complete in the absolute worst case, though
usually it sits around a second or so.

Using File.exist? to instead check if $GIT_DIR/refs exists is a much
faster way of checking if a repository was initialized properly.
2016-11-21 12:51:40 +01:00
..
assets Merge branch 'super-secret-login-upgrade' into 'master' 2016-11-19 20:01:59 +00:00
controllers Merge remote-tracking branch 'origin/master' into 22539-display-folders 2016-11-18 20:20:30 +01:00
finders Limit labels returned for a specific project as an administrator 2016-11-16 15:04:51 +02:00
helpers Merge branch 'issue_5541' into 'master' 2016-11-21 11:07:46 +00:00
mailers Merge remote-tracking branch 'upstream/master' into pipeline-notifications 2016-11-08 23:52:17 +08:00
models Use File.exist? to check if a repository exists 2016-11-21 12:51:40 +01:00
policies Merge branch 'pipeline-notifications' into 'master' 2016-11-09 13:41:04 +00:00
serializers Expose stop_path for environment to not construct that in frontend 2016-11-18 22:31:59 +01:00
services Fix regression in Merge request form 2016-11-19 11:37:12 -04:00
uploaders
validators Add robots.txt to the list of reserved namespaces 2016-10-11 02:58:26 +01:00
views Merge branch 'super-secret-login-upgrade' into 'master' 2016-11-19 20:01:59 +00:00
workers Merge branch 'feature/precalculate-authorized-projects' into 'master' 2016-11-18 19:42:17 +00:00