Commit 40ac2ebc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

fixed bug with branch/commit detection in select

parent 313d96e4
...@@ -54,7 +54,7 @@ module ApplicationHelper ...@@ -54,7 +54,7 @@ module ApplicationHelper
# If reference is commit id - # If reference is commit id -
# we should add it to branch/tag selectbox # we should add it to branch/tag selectbox
if(@ref && !options.include?(@ref) && if(@ref && !options.flatten.include?(@ref) &&
@ref =~ /^[0-9a-zA-Z]{6,52}$/) @ref =~ /^[0-9a-zA-Z]{6,52}$/)
options << ["Commit", [@ref]] options << ["Commit", [@ref]]
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