Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9e6ce877
Commit
9e6ce877
authored
Jan 25, 2018
by
Jacob Vosmaer (GitLab)
Committed by
Douwe Maan
Jan 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Gitaly RepositoryExists opt-out
parent
d7d6bad1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
changelogs/unreleased/gitaly-repo-exists.yml
changelogs/unreleased/gitaly-repo-exists.yml
+5
-0
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+1
-1
No files found.
changelogs/unreleased/gitaly-repo-exists.yml
0 → 100644
View file @
9e6ce877
---
title
:
Make Gitaly RepositoryExists opt-out
merge_request
:
16680
author
:
type
:
other
lib/gitlab/git/repository.rb
View file @
9e6ce877
...
@@ -133,7 +133,7 @@ module Gitlab
...
@@ -133,7 +133,7 @@ module Gitlab
end
end
def
exists?
def
exists?
Gitlab
::
GitalyClient
.
migrate
(
:repository_exists
)
do
|
enabled
|
Gitlab
::
GitalyClient
.
migrate
(
:repository_exists
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
enabled
|
if
enabled
if
enabled
gitaly_repository_client
.
exists?
gitaly_repository_client
.
exists?
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment