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
fc4ae0d9
Commit
fc4ae0d9
authored
Jan 28, 2020
by
Gary Holtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing unreachable functions
parent
580c2829
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
app/models/repository.rb
app/models/repository.rb
+0
-18
lib/gitlab/git/repository.rb
lib/gitlab/git/repository.rb
+0
-11
No files found.
app/models/repository.rb
View file @
fc4ae0d9
...
...
@@ -1073,24 +1073,6 @@ class Repository
raw_repository
.
fetch_ref
(
source_repository
.
raw_repository
,
source_ref:
source_ref
,
target_ref:
target_ref
)
end
# DEPRECATED: https://gitlab.com/gitlab-org/gitaly/issues/1628
def
rebase_deprecated
(
user
,
merge_request
)
rebase_sha
=
raw
.
rebase_deprecated
(
user
,
merge_request
.
id
,
branch:
merge_request
.
source_branch
,
branch_sha:
merge_request
.
source_branch_sha
,
remote_repository:
merge_request
.
target_project
.
repository
.
raw
,
remote_branch:
merge_request
.
target_branch
)
# To support the full deprecated behaviour, set the
# `rebase_commit_sha` for the merge_request here and return the value
merge_request
.
update
(
rebase_commit_sha:
rebase_sha
,
merge_error:
nil
)
rebase_sha
end
def
rebase
(
user
,
merge_request
,
skip_ci:
false
)
push_options
=
[]
push_options
<<
Gitlab
::
PushOptions
::
CI_SKIP
if
skip_ci
...
...
lib/gitlab/git/repository.rb
View file @
fc4ae0d9
...
...
@@ -822,17 +822,6 @@ module Gitlab
gitaly_repository_client
.
create_from_snapshot
(
url
,
auth
)
end
# DEPRECATED: https://gitlab.com/gitlab-org/gitaly/issues/1628
def
rebase_deprecated
(
user
,
rebase_id
,
branch
:,
branch_sha
:,
remote_repository
:,
remote_branch
:)
wrapped_gitaly_errors
do
gitaly_operation_client
.
user_rebase
(
user
,
rebase_id
,
branch:
branch
,
branch_sha:
branch_sha
,
remote_repository:
remote_repository
,
remote_branch:
remote_branch
)
end
end
def
rebase
(
user
,
rebase_id
,
branch
:,
branch_sha
:,
remote_repository
:,
remote_branch
:,
push_options:
[],
&
block
)
wrapped_gitaly_errors
do
gitaly_operation_client
.
rebase
(
...
...
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