diff options
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 9e7501b7ce6..3000ab7cad0 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -283,6 +283,10 @@ class Snippet < ApplicationRecord end end + def url_to_repo + Gitlab::Shell.url_to_repo(full_path.delete('@')) + end + def repository_storage snippet_repository&.shard_name || Gitlab::CurrentSettings.pick_repository_storage |