diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-21 02:27:21 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-21 02:27:21 -0800 |
commit | 5f9d90e2186c373d336794fa336496652a638366 (patch) | |
tree | d63882f251e040a19179f77b90562d90bc4bac35 /app/models/project.rb | |
parent | afd2999373fe1a6bdc611ab4a14e3e81d2f7350d (diff) | |
parent | e77694bff3e0867f226be28108b814895d32d354 (diff) | |
download | gitlab-ce-5f9d90e2186c373d336794fa336496652a638366.tar.gz |
Merge pull request #5958 from brunoga/go-repository-fetch
Added support for Go's repository retrieval.
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 30faaf00fff..da5f25f3cbc 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -205,6 +205,10 @@ class Project < ActiveRecord::Base [Gitlab.config.gitlab.url, path_with_namespace].join("/") end + def web_url_without_protocol + web_url.split("://")[1] + end + def build_commit_note(commit) notes.new(commit_id: commit.id, noteable_type: "Commit") end |