fixed bug with branch/commit detection in select
This commit is contained in:
parent
313d96e42b
commit
40ac2ebc21
|
@ -54,7 +54,7 @@ module ApplicationHelper
|
|||
|
||||
# If reference is commit id -
|
||||
# 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}$/)
|
||||
options << ["Commit", [@ref]]
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue