diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-23 09:06:03 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-23 09:06:03 +0000 |
commit | b3e4ec8e8adf4fe96c982124e91b6a05021a9cda (patch) | |
tree | 5fda0011a7cc7de000186e465e61f893d478a1c8 /lib/gitlab/shell.rb | |
parent | 90cdc9391171e1be29b2b57a2e2aad0c02c2a7a9 (diff) | |
download | gitlab-ce-b3e4ec8e8adf4fe96c982124e91b6a05021a9cda.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/shell.rb')
-rw-r--r-- | lib/gitlab/shell.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/gitlab/shell.rb b/lib/gitlab/shell.rb index 125d0d1cfbb..28e5d0ba8f5 100644 --- a/lib/gitlab/shell.rb +++ b/lib/gitlab/shell.rb @@ -285,18 +285,6 @@ module Gitlab end end - # Check if such directory exists in repositories. - # - # Usage: - # exists?(storage, 'gitlab') - # exists?(storage, 'gitlab/cookies.git') - # - # rubocop: disable CodeReuse/ActiveRecord - def exists?(storage, dir_name) - Gitlab::GitalyClient::NamespaceService.new(storage).exists?(dir_name) - end - # rubocop: enable CodeReuse/ActiveRecord - def repository_exists?(storage, dir_name) Gitlab::Git::Repository.new(storage, dir_name, nil, nil).exists? rescue GRPC::Internal |