diff options
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r-- | lib/api/projects.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 3ca099a..0311c56 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -81,13 +81,13 @@ module API # Example Request: # POST /projects post do - required_attributes! [:name, :gitlab_id, :gitlab_url, :ssh_url_to_repo] + required_attributes! [:name, :gitlab_id, :ssh_url_to_repo] filtered_params = { name: params[:name], gitlab_id: params[:gitlab_id], # we accept gitlab_url for backward compatibility for a while (added to 7.11) - path: params[:post] || params[:gitlab_url].sub(/.*\/(.*\/.*)$/, '\1'), + path: params[:path] || params[:gitlab_url].sub(/.*\/(.*\/.*)$/, '\1'), default_ref: params[:default_ref] || 'master', ssh_url_to_repo: params[:ssh_url_to_repo] } |