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
ffabab80
Commit
ffabab80
authored
May 15, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'use-gitaly-migrate' into 'master'
Use gitaly_migrate helper on all current migrations in repository See merge request !11309
parents
aab904f7
6d46e510
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
repository.rb
lib/gitlab/git/repository.rb
+3
-3
No files found.
lib/gitlab/git/repository.rb
View file @
ffabab80
...
...
@@ -116,7 +116,7 @@ module Gitlab
# Returns the number of valid branches
def
branch_count
Gitlab
::
GitalyClient
.
migrate
(
:branch_names
)
do
|
is_enabled
|
gitaly_
migrate
(
:branch_names
)
do
|
is_enabled
|
if
is_enabled
gitaly_ref_client
.
count_branch_names
else
...
...
@@ -135,7 +135,7 @@ module Gitlab
# Returns the number of valid tags
def
tag_count
Gitlab
::
GitalyClient
.
migrate
(
:tag_names
)
do
|
is_enabled
|
gitaly_
migrate
(
:tag_names
)
do
|
is_enabled
|
if
is_enabled
gitaly_ref_client
.
count_tag_names
else
...
...
@@ -473,7 +473,7 @@ module Gitlab
def
ref_name_for_sha
(
ref_path
,
sha
)
# NOTE: This feature is intentionally disabled until
# https://gitlab.com/gitlab-org/gitaly/issues/180 is resolved
#
Gitlab::GitalyClient.
migrate(:find_ref_name) do |is_enabled|
#
gitaly_
migrate(:find_ref_name) do |is_enabled|
# if is_enabled
# gitaly_ref_client.find_ref_name(sha, ref_path)
# 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