summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/operation_service.rb
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2018-01-03 13:31:06 +0100
committerAhmad Sherif <me@ahmadsherif.com>2018-01-04 12:39:45 +0100
commit0ba0f9de08eb3d5113f4557b925506167484950a (patch)
treecca25671cbf6f7dae37381409036678f070a91af /lib/gitlab/git/operation_service.rb
parenta0ae88613598a2b0fddad4e7a6f779827257f103 (diff)
downloadgitlab-ce-0ba0f9de08eb3d5113f4557b925506167484950a.tar.gz
Prepare Gitlab::Git::Repository#rebase for Gitaly migrationfix/prepare-rebase-to-be-migrated-to-gitaly
Diffstat (limited to 'lib/gitlab/git/operation_service.rb')
-rw-r--r--lib/gitlab/git/operation_service.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/git/operation_service.rb b/lib/gitlab/git/operation_service.rb
index ef5bdbaf819..3fb0e2eed93 100644
--- a/lib/gitlab/git/operation_service.rb
+++ b/lib/gitlab/git/operation_service.rb
@@ -97,6 +97,11 @@ module Gitlab
end
end
+ def update_branch(branch_name, newrev, oldrev)
+ ref = Gitlab::Git::BRANCH_REF_PREFIX + branch_name
+ update_ref_in_hooks(ref, newrev, oldrev)
+ end
+
private
# Returns [newrev, should_run_after_create, should_run_after_create_branch]