Commit 87a8935a authored by Douwe Maan's avatar Douwe Maan

Add mirror_helper

parent 28301fe1
module MirrorHelper
def branch_diverged_tooltip_message
message = "The branch could not be updated automatically because it has diverged from its upstream counterpart."
message << "<br>To discard the local changes and overwrite the branch with the upstream version, delete it here and choose 'Update Now' above." if can?(current_user, :push_code, @project)
message
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