diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-03-27 11:43:03 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-04-03 15:50:22 -0300 |
commit | 336ba94a7bbdd52f07d0f1c7f7bced20c37ad307 (patch) | |
tree | 881862060ce559f579ac8d5b31f1b81844678eea /app/models/project.rb | |
parent | 97c49b8426c62b5b398ed9a2bf863d859a4b7e55 (diff) | |
download | gitlab-ce-336ba94a7bbdd52f07d0f1c7f7bced20c37ad307.tar.gz |
Fetch GitHub project as a mirror to get all refs at once
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index f1bba56d32c..83660d8c431 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -551,6 +551,10 @@ class Project < ActiveRecord::Base import_type == 'gitea' end + def github_import? + import_type == 'github' + end + def check_limit unless creator.can_create_project? || namespace.kind == 'group' projects_limit = creator.projects_limit |