Commit fc6bdc12 authored by James Lopez's avatar James Lopez

working fix

parent 2d562fad
......@@ -214,6 +214,7 @@ module Gitlab
commits.each do |commit|
next if commit_from_annex_sync?(commit.id, ref)
if status_object = check_commit(commit, git_hook)
return status_object
end
......@@ -370,7 +371,7 @@ 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).contains? "synced/#{ref}"
project.repository.branch_names_contains(rev).include? "synced/#{ref.split("/").last}"
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