diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_projects.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 0dd56be..3617bb2 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -168,11 +168,6 @@ class GitlabProjects return false end - unless File.exists?(File.join(full_path, 'refs/heads', new_head)) - $logger.error "update-head failed: specified branch does not exist in ref/heads." - return false - end - File.open(File.join(full_path, 'HEAD'), 'w') do |f| f.write("ref: refs/heads/#{new_head}") end |