diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-07-03 14:37:20 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2017-07-03 14:37:20 -0300 |
commit | 73f5b02b4fa275bbd3a5880144114ea69f594307 (patch) | |
tree | 49c53b40e82efa78b9b75507d0081bf6f1316d13 /app/models | |
parent | 9c8075c4b95f090fc6f00c897f6bf097d29ee8bf (diff) | |
download | gitlab-ce-73f5b02b4fa275bbd3a5880144114ea69f594307.tar.gz |
Change the force flag to a keyword argumentsh-allow-force-repo-create
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 21f4a18ec4a..fdf72d3bbd3 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -1073,7 +1073,7 @@ class Project < ActiveRecord::Base merge_requests.where(source_project_id: self.id) end - def create_repository(force = false) + def create_repository(force: false) # Forked import is handled asynchronously return if forked? && !force @@ -1087,7 +1087,7 @@ class Project < ActiveRecord::Base end def ensure_repository - create_repository(true) unless repository_exists? + create_repository(force: true) unless repository_exists? end def repository_exists? |