Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git_access_snippet.rb')
-rw-r--r--lib/gitlab/git_access_snippet.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/gitlab/git_access_snippet.rb b/lib/gitlab/git_access_snippet.rb
index 4d87b91764a..5ae17dbbb91 100644
--- a/lib/gitlab/git_access_snippet.rb
+++ b/lib/gitlab/git_access_snippet.rb
@@ -30,10 +30,7 @@ module Gitlab
def check(cmd, changes)
check_snippet_accessibility!
- super.tap do |_|
- # Ensure HEAD points to the default branch in case it is not master
- snippet.change_head_to_default_branch
- end
+ super
end
override :download_ability