BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
54229d3e
Commit
54229d3e
authored
Dec 27, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'gitaly-remotes-fix' into 'master'
Fix feature flags for Gitaly's RemoteService RPCs See merge request gitlab-org/gitlab-ce!16150
parents
f1d5e509
04b98756
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
repository.rb
lib/gitlab/git/repository.rb
+2
-2
No files found.
lib/gitlab/git/repository.rb
View file @
54229d3e
...
...
@@ -919,7 +919,7 @@ module Gitlab
# If `mirror_refmap` is present the remote is set as mirror with that mapping
def
add_remote
(
remote_name
,
url
,
mirror_refmap:
nil
)
gitaly_migrate
(
:
operation_user_add_tag
)
do
|
is_enabled
|
gitaly_migrate
(
:
remote_add_remote
)
do
|
is_enabled
|
if
is_enabled
gitaly_remote_client
.
add_remote
(
remote_name
,
url
,
mirror_refmap
)
else
...
...
@@ -929,7 +929,7 @@ module Gitlab
end
def
remove_remote
(
remote_name
)
gitaly_migrate
(
:
operation_user_add_tag
)
do
|
is_enabled
|
gitaly_migrate
(
:
remote_remove_remote
)
do
|
is_enabled
|
if
is_enabled
gitaly_remote_client
.
remove_remote
(
remote_name
)
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