diff options
author | Robert Speicher <robert@gitlab.com> | 2016-04-15 16:44:21 +0000 |
---|---|---|
committer | Robert Speicher <robert@gitlab.com> | 2016-04-15 16:44:21 +0000 |
commit | 34b056156049584939b65feafa26b4557ed7272c (patch) | |
tree | c65474ce2e247f061d68a9fbc95328516b6ef8c7 /lib | |
parent | bb59a1f98eb44cbe288d876eb963e9467b8637f4 (diff) | |
parent | f8e8a61c9ce6d90347960a3fda8abd15c32ddc29 (diff) | |
download | gitlab-ce-34b056156049584939b65feafa26b4557ed7272c.tar.gz |
Merge branch 'pmq20/gitlab-ce-psvr/change-head' into 'master'
Use rugged to change HEAD
_Originally opened at !2850 by @pmq20._
Needless to invoke gitlab_shell here, which is slow.
See merge request !3705
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/backend/shell.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/gitlab/backend/shell.rb b/lib/gitlab/backend/shell.rb index 4ceea2ab221..5e2fb863a8f 100644 --- a/lib/gitlab/backend/shell.rb +++ b/lib/gitlab/backend/shell.rb @@ -54,19 +54,6 @@ module Gitlab "#{path}.git", "#{new_path}.git"]) end - # Update HEAD for repository - # - # path - project path with namespace - # branch - repository branch name - # - # Ex. - # update_repository_head("gitlab/gitlab-ci", "3-1-stable") - # - def update_repository_head(path, branch) - Gitlab::Utils.system_silent([gitlab_shell_projects_path, 'update-head', - "#{path}.git", branch]) - end - # Fork repository to new namespace # # path - project path with namespace |