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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
cf955af1
Commit
cf955af1
authored
Apr 14, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move uncached_has_local_branches? to a private method
parent
74e5ec19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+10
-10
No files found.
lib/gitlab/git/repository.rb
View file @
cf955af1
...
@@ -242,16 +242,6 @@ module Gitlab
...
@@ -242,16 +242,6 @@ module Gitlab
end
end
end
end
def
uncached_has_local_branches?
gitaly_migrate
(
:has_local_branches
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
gitaly_repository_client
.
has_local_branches?
else
has_local_branches_rugged?
end
end
end
# Git repository can contains some hidden refs like:
# Git repository can contains some hidden refs like:
# /refs/notes/*
# /refs/notes/*
# /refs/git-as-svn/*
# /refs/git-as-svn/*
...
@@ -1570,6 +1560,16 @@ module Gitlab
...
@@ -1570,6 +1560,16 @@ module Gitlab
private
private
def
uncached_has_local_branches?
gitaly_migrate
(
:has_local_branches
,
status:
Gitlab
::
GitalyClient
::
MigrationStatus
::
OPT_OUT
)
do
|
is_enabled
|
if
is_enabled
gitaly_repository_client
.
has_local_branches?
else
has_local_branches_rugged?
end
end
end
def
local_write_ref
(
ref_path
,
ref
,
old_ref:
nil
,
shell:
true
)
def
local_write_ref
(
ref_path
,
ref
,
old_ref:
nil
,
shell:
true
)
if
shell
if
shell
shell_write_ref
(
ref_path
,
ref
,
old_ref
)
shell_write_ref
(
ref_path
,
ref
,
old_ref
)
...
...
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