diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-15 11:48:19 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-15 11:48:19 +0200 |
commit | 804d20742f9ccec997aad72ed0d678c5ac57c8c9 (patch) | |
tree | d7d6bfdfcb5797790d00a026e699a99f0f909c31 /lib | |
parent | c615ca4650dfb4b17bf073276024f886e52b74a3 (diff) | |
download | gitlab-shell-remove-update-head.tar.gz |
Remove the update-head command since GitLab doesn't use it anymoreremove-update-head
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_projects.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 9276344..fc9f4bb 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -61,7 +61,6 @@ class GitlabProjects when 'import-project'; import_project when 'fork-project'; fork_project when 'fetch-remote'; fetch_remote - when 'update-head'; update_head when 'push-branches'; push_branches when 'delete-remote-branches'; delete_remote_branches when 'list-remote-tags'; list_remote_tags @@ -336,22 +335,6 @@ class GitlabProjects system(*cmd) && self.class.create_hooks(full_destination_path) end - def update_head - new_head = ARGV.shift - - unless new_head - $logger.error "update-head failed: no branch provided." - return false - end - - File.open(File.join(full_path, 'HEAD'), 'w') do |f| - f.write("ref: refs/heads/#{new_head}") - end - - $logger.info "Update head in project #{project_name} to <#{new_head}>." - true - end - def gc $logger.info "Running git gc for <#{full_path}>." unless File.exists?(full_path) |