Commit 977cbcde authored by James Lopez's avatar James Lopez

use gitlab helper method

parent fc6bdc12
......@@ -371,7 +371,8 @@ module Gitlab
return false unless Gitlab.config.gitlab_shell.git_annex_enabled
# Commit present in synced/current_branch, so avoid checking git hooks on this
project.repository.branch_names_contains(rev).include? "synced/#{ref.split("/").last}"
branch_name = "synced/#{Gitlab::Git::Ref.extract_branch_name(ref)}"
project.repository.branch_names_contains(rev).include? branch_name
end
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment