• Mark Chao's avatar
    Validate MR branch names · d8bddb16
    Mark Chao authored
    Prevents refspec as branch name, which would bypass branch protection
    when used in conjunction with rebase.
    
    HEAD seems to be a special case with lots of occurrence,
    so it is considered valid for now.
    
    Another special case is `refs/head/*`, which can be imported.
    d8bddb16
issuable_list_spec.rb 3.48 KB