Fix issue when developers are able to push to protected branch
Fix issue when developers are able to push to protected branch

When that branch contain a '/' in the branch name.
Fix for git over HTTP

aaronsnyder/gitlabhq,jirutka/gitlabhq,pupaxxo/gitlabhq,ttasanen/gitlabhq,bbodenmiller/gitlabhq,initiummedia/gitlabhq,ArthurHoaro/Public-GitLab,johnmyqin/gitlabhq,pulkit21/gitlabhq,cui-liqiang/gitlab-ce,theonlydoo/gitlabhq,aaronsnyder/gitlabhq,0x20h/gitlabhq,ayufan/gitlabhq,dvrylc/gitlabhq,axilleas/gitlabhq,kemenaran/gitlabhq,NARKOZ/gitlabhq,bladealslayer/gitlabhq,k4zzk/gitlabhq,yuyue2013/ss,jrjang/gitlabhq,fpgentil/gitlabhq,adaiguoguo/gitlab_globalserarch,zBMNForks/gitlabhq,yuyue2013/ss,fpgentil/gitlabhq,TheWatcher/gitlabhq,allistera/gitlabhq,icedwater/gitlabhq,fscherwi/gitlabhq,ayufan/gitlabhq,goeun/myRepo,nmav/gitlabhq,123Haynes/gitlabhq,yatish27/gitlabhq,dvrylc/gitlabhq,ikappas/gitlabhq,martinma4/gitlabhq,OtkurBiz/gitlabhq,liyakun/gitlabhq,chenrui2014/gitlabhq,stoplightio/gitlabhq,ZeoAlliance/gitlabhq,t-zuehlsdorff/gitlabhq,mente/gitlabhq,theodi/gitlabhq,TheWatcher/gitlabhq,pupaxxo/gitlabhq,LytayTOUCH/gitlabhq,fearenales/gitlabhq,dplarson/gitlabhq,sekcheong/gitlabhq,ibiart/gitlabhq,phinfonet/mobbr-gitlabhq,ngpestelos/gitlabhq,stellamiranda/mobbr-gitlabhq,ikappas/gitlabhq,shinexiao/gitlabhq,Razer6/gitlabhq,dplarson/gitlabhq,sonalkr132/gitlabhq,mmkassem/gitlabhq,michaKFromParis/sparkslab,louahola/gitlabhq,delkyd/gitlabhq,daiyu/gitlab-zh,htve/GitlabForChinese,chadyred/gitlabhq,tk23/gitlabhq,fscherwi/gitlabhq,htve/GitlabForChinese,Keystion/gitlabhq,hacsoc/gitlabhq,0x20h/gitlabhq,chenrui2014/gitlabhq,Keystion/gitlabhq,sideci-sample/sideci-sample-gitlabhq,kotaro-dev/gitlab-6-9,fscherwi/gitlabhq,kitech/gitlabhq,Tyrael/gitlabhq,sakishum/gitlabhq,zrbsprite/gitlabhq,mrb/gitlabhq,pulkit21/gitlabhq,rebecamendez/gitlabhq,gorgee/gitlabhq,jrjang/gitlabhq,t-zuehlsdorff/gitlabhq,julianengel/gitlabhq,ayufan/gitlabhq,tempbottle/gitlabhq,johnmyqin/gitlabhq,nguyen-tien-mulodo/gitlabhq,rfeese/gitlab-ce,pulkit21/gitlabhq,windymid/test2,xuvw/gitlabhq,bbodenmiller/gitlabhq,cinderblock/gitlabhq,fantasywind/gitlabhq,shinexiao/gitlabhq,daiyu/gitlab-zh,kitech/gitlabhq,ferdinandrosario/gitlabhq,copystudy/gitlabhq,phinfonet/mobbr-gitlabhq,mmkassem/gitlabhq,NARKOZ/gitlabhq,kitech/gitlabhq,michaKFromParis/gitlabhqold,DanielZhangQingLong/gitlabhq,allysonbarros/gitlabhq,pjknkda/gitlabhq,allistera/gitlabhq,yfaizal/gitlabhq,joalmeid/gitlabhq,jaepyoung/gitlabhq,Razer6/gitlabhq,michaKFromParis/sparkslab,tim-hoff/gitlabhq,delkyd/gitlabhq,dreampet/gitlab,fgbreel/gitlabhq,williamherry/gitlabhq,bladealslayer/gitlabhq,Tyrael/gitlabhq,jvanbaarsen/gitlabhq,rfeese/gitlab-ce,SVArago/gitlabhq,kotaro-dev/gitlab-6-9,Soullivaneuh/gitlabhq,OlegGirko/gitlab-ce,8thcolor/testing-public-gitlabhq,fgbreel/gitlabhq,luzhongyang/gitlabhq,sue445/gitlabhq,yulchitaj/TEST3,it33/gitlabhq,theonlydoo/gitlabhq,mrb/gitlabhq,bigsurge/gitlabhq,axilleas/gitlabhq,bigsurge/gitlabhq,screenpages/gitlabhq,jaepyoung/gitlabhq,hzy001/gitlabhq,fendoudeqingchunhh/gitlabhq,fpgentil/gitlabhq,chenrui2014/gitlabhq,sue445/gitlabhq,ordiychen/gitlabhq,xuvw/gitlabhq,eliasp/gitlabhq,wangcan2014/gitlabhq,fgbreel/gitlabhq,nguyen-tien-mulodo/gitlabhq,Kambda/Mobbr,Datacom/gitlabhq,hzy001/gitlabhq,theodi/gitlabhq,salipro4ever/gitlabhq,jaepyoung/gitlabhq,bozaro/gitlabhq,ksoichiro/gitlabhq,louahola/gitlabhq,iiet/iiet-git,jvanbaarsen/gitlabhq,icedwater/gitlabhq,NuLL3rr0r/gitlabhq,NuLL3rr0r/gitlabhq,salipro4ever/gitlabhq,yfaizal/gitlabhq,fendoudeqingchunhh/gitlabhq,michaKFromParis/gitlabhq,yuyue2013/ss,fendoudeqingchunhh/gitlabhq,ikappas/gitlabhq,dukex/gitlabhq,akumetsuv/gitlab,vjustov/gitlabhq,youprofit/gitlabhq,Exeia/gitlabhq,axilleas/gitlabhq,sakishum/gitlabhq,fendoudeqingchunhh/gitlabhq,windymid/test2,jaepyoung/gitlabhq,jairzh/gitlabhq-sfdc,daiyu/gitlab-zh,Burick/gitlabhq,theodi/gitlabhq,ordiychen/gitlabhq,cui-liqiang/gitlab-ce,manfer/gitlabhq,johnmyqin/gitlabhq,chadyred/gitlabhq,Exeia/gitlabhq,theonlydoo/gitlabhq,rebecamendez/gitlabhq,WSDC-NITWarangal/gitlabhq,wangcan2014/gitlabhq,liyakun/gitlabhq,SVArago/gitlabhq,vjustov/gitlabhq,rumpelsepp/gitlabhq,mmkassem/gitlabhq,H3Chief/gitlabhq,dplarson/gitlabhq,larryli/gitlabhq,childbamboo/gitlabhq,dwrensha/gitlabhq,Razer6/gitlabhq,allysonbarros/gitlabhq,htve/GitlabForChinese,youprofit/gitlabhq,michaKFromParis/sparkslab,julianengel/gitlabhq,fantasywind/gitlabhq,fantasywind/gitlabhq,Devin001/gitlabhq,LUMC/gitlabhq,cui-liqiang/gitlab-ce,jrjang/gitlab-ce,dreampet/gitlab,gopeter/gitlabhq,hq804116393/gitlabhq,dukex/gitlabhq,bigsurge/gitlabhq,salipro4ever/gitlabhq,sekcheong/gitlabhq,tk23/gitlabhq,ferdinandrosario/gitlabhq,rebecamendez/gitlabhq,larryli/gitlabhq,duduribeiro/gitlabhq,htve/GitlabForChinese,chadyred/gitlabhq,yonglehou/gitlabhq,sonalkr132/gitlabhq,k4zzk/gitlabhq,MauriceMohlek/gitlabhq,mavimo/gitlabhq,openwide-java/gitlabhq,wangcan2014/gitlabhq,pkgr/gitlabhq,axilleas/gitlabhq,chenrui2014/gitlabhq,yatish27/gitlabhq,OtkurBiz/gitlabhq,yama07/gitlabhq,cui-liqiang/gitlab-ce,tempbottle/gitlabhq,rebecamendez/gitlabhq,shinexiao/gitlabhq,TheWatcher/gitlabhq,vjustov/gitlabhq,sakishum/gitlabhq,ordiychen/gitlabhq,mrb/gitlabhq,initiummedia/gitlabhq,Keystion/gitlabhq,since2014/gitlabhq,youprofit/gitlabhq,cncodog/gitlab,liyakun/gitlabhq,dwrensha/gitlabhq,vjustov/gitlabhq,julianengel/gitlabhq,gopeter/gitlabhq,bozaro/gitlabhq,ttasanen/gitlabhq,jvanbaarsen/gitlabhq,Burick/gitlabhq,pkallberg/tjenare,sideci-sample/sideci-sample-gitlabhq,ksoichiro/gitlabhq,TheWatcher/gitlabhq,DanielZhangQingLong/gitlabhq,Exeia/gitlabhq,martijnvermaat/gitlabhq,rhels/gitlabhq,123Haynes/gitlabhq,tim-hoff/gitlabhq,H3Chief/gitlabhq,michaKFromParis/gitlabhq,rhels/gitlabhq,koreamic/gitlabhq,darkrasid/gitlabhq,Datacom/gitlabhq,dukex/gitlabhq,yatish27/gitlabhq,kemenaran/gitlabhq,H3Chief/gitlabhq,duduribeiro/gitlabhq,tim-hoff/gitlabhq,zBMNForks/gitlabhq,Telekom-PD/gitlabhq,screenpages/gitlabhq,jairzh/gitlabhq-sfdc,jairzh/gitlabhq-sfdc,koreamic/gitlabhq,nmav/gitlabhq,yfaizal/gitlabhq,allysonbarros/gitlabhq,t-zuehlsdorff/gitlabhq,cncodog/gitlab,folpindo/gitlabhq,szechyjs/gitlabhq,copystudy/gitlabhq,hacsoc/gitlabhq,OtkurBiz/gitlabhq,szechyjs/gitlabhq,8thcolor/rubyconfau2015-sadr,hacsoc/gitlabhq,fearenales/gitlabhq,revaret/gitlabhq,Burick/gitlabhq,ksoichiro/gitlabhq,atomaka/gitlabhq,dreampet/gitlab,cinderblock/gitlabhq,ksoichiro/gitlabhq,jvanbaarsen/gitlabhq,yfaizal/gitlabhq,stanhu/gitlabhq,flashbuckets/gitlabhq,eliasp/gitlabhq,OtkurBiz/gitlabhq,Telekom-PD/gitlabhq,larryli/gitlabhq,openwide-java/gitlabhq,darkrasid/gitlabhq,sue445/gitlabhq,atomaka/gitlabhq,stoplightio/gitlabhq,tim-hoff/gitlabhq,johnmyqin/gitlabhq,wangcan2014/gitlabhq,aaronsnyder/gitlabhq,Telekom-PD/gitlabhq,SkyWei/gitlabhq,sonalkr132/gitlabhq,Datacom/gitlabhq,NKMR6194/gitlabhq,stanhu/gitlabhq,WSDC-NITWarangal/gitlabhq,williamherry/gitlabhq,DanielZhangQingLong/gitlabhq,goeun/myRepo,since2014/gitlabhq,NuLL3rr0r/gitlabhq,dvrylc/gitlabhq,NARKOZ/gitlabhq,MauriceMohlek/gitlabhq,jrjang/gitlabhq,NKMR6194/gitlabhq,folpindo/gitlabhq,OlegGirko/gitlab-ce,bozaro/gitlabhq,aaronsnyder/gitlabhq,martinma4/gitlabhq,darkrasid/gitlabhq,yuyue2013/ss,martinma4/gitlabhq,zrbsprite/gitlabhq,Devin001/gitlabhq,rfeese/gitlab-ce,nmav/gitlabhq,Tyrael/gitlabhq,rhels/gitlabhq,yama07/gitlabhq,childbamboo/gitlabhq,gorgee/gitlabhq,salipro4ever/gitlabhq,hzy001/gitlabhq,t-zuehlsdorff/gitlabhq,cinderblock/gitlabhq,mr-dxdy/gitlabhq,WSDC-NITWarangal/gitlabhq,Kambda/Mobbr,theodi/gitlabhq,gopeter/gitlabhq,Telekom-PD/gitlabhq,mente/gitlabhq,icedwater/gitlabhq,martijnvermaat/gitlabhq,copystudy/gitlabhq,jairzh/gitlabhq-sfdc,per-garden/gitlabhq,koreamic/gitlabhq,cinderblock/gitlabhq,manfer/gitlabhq,mr-dxdy/gitlabhq,atomaka/gitlabhq,mr-dxdy/gitlabhq,OlegGirko/gitlab-ce,NARKOZ/gitlabhq,ordiychen/gitlabhq,jirutka/gitlabhq,mavimo/gitlabhq,it33/gitlabhq,cncodog/gitlab,windymid/test2,szechyjs/gitlabhq,ibiart/gitlabhq,joalmeid/gitlabhq,ngpestelos/gitlabhq,iiet/iiet-git,yama07/gitlabhq,shinexiao/gitlabhq,dwrensha/gitlabhq,revaret/gitlabhq,yulchitaj/TEST3,akumetsuv/gitlab,pkgr/gitlabhq,jirutka/gitlabhq,ikappas/gitlabhq,lvfeng1130/gitlabhq,luzhongyang/gitlabhq,theonlydoo/gitlabhq,iiet/iiet-git,folpindo/gitlabhq,screenpages/gitlabhq,Kambda/mobbr-gitlabhq,jirutka/gitlabhq,pupaxxo/gitlabhq,Devin001/gitlabhq,darkrasid/gitlabhq,flashbuckets/gitlabhq,k4zzk/gitlabhq,fpgentil/gitlabhq,Keystion/gitlabhq,stoplightio/gitlabhq,fscherwi/gitlabhq,dplarson/gitlabhq,luzhongyang/gitlabhq,sekcheong/gitlabhq,mr-dxdy/gitlabhq,dvrylc/gitlabhq,8thcolor/testing-public-gitlabhq,stanhu/gitlabhq,zrbsprite/gitlabhq,luzhongyang/gitlabhq,yama07/gitlabhq,Datacom/gitlabhq,adaiguoguo/gitlab_globalserarch,pkgr/gitlabhq,123Haynes/gitlabhq,delkyd/gitlabhq,cncodog/gitlab,stellamiranda/mobbr-gitlabhq,openwide-java/gitlabhq,bbodenmiller/gitlabhq,flashbuckets/gitlabhq,8thcolor/eurucamp2014-htdsadr,lvfeng1130/gitlabhq,0x20h/gitlabhq,SkyWei/gitlabhq,michaKFromParis/gitlabhqold,lvfeng1130/gitlabhq,Kambda/mobbr-gitlabhq,since2014/gitlabhq,pulkit21/gitlabhq,gopeter/gitlabhq,Soullivaneuh/gitlabhq,allistera/gitlabhq,michaKFromParis/sparkslab,whluwit/gitlabhq,zBMNForks/gitlabhq,manfer/gitlabhq,hq804116393/gitlabhq,Kambda/mobbr-gitlabhq,mathstuf/gitlabhq,whluwit/gitlabhq,yulchitaj/TEST3,hq804116393/gitlabhq,williamherry/gitlabhq,LytayTOUCH/gitlabhq,hzy001/gitlabhq,Soullivaneuh/gitlabhq,MauriceMohlek/gitlabhq,dwrensha/gitlabhq,mathstuf/gitlabhq,delkyd/gitlabhq,mavimo/gitlabhq,Razer6/gitlabhq,rumpelsepp/gitlabhq,per-garden/gitlabhq,louahola/gitlabhq,eliasp/gitlabhq,gorgee/gitlabhq,sakishum/gitlabhq,rumpelsepp/gitlabhq,michaKFromParis/gitlabhq,mrb/gitlabhq,kemenaran/gitlabhq,mathstuf/gitlabhq,allistera/gitlabhq,ayufan/gitlabhq,martinma4/gitlabhq,pjknkda/gitlabhq,initiummedia/gitlabhq,8thcolor/rubyconfau2015-sadr,8thcolor/rubyconfau2015-sadr,hacsoc/gitlabhq,icedwater/gitlabhq,ZeoAlliance/gitlabhq,dreampet/gitlab,eliasp/gitlabhq,LUMC/gitlabhq,dukex/gitlabhq,chadyred/gitlabhq,nguyen-tien-mulodo/gitlabhq,H3Chief/gitlabhq,MauriceMohlek/gitlabhq,liyakun/gitlabhq,kemenaran/gitlabhq,revaret/gitlabhq,initiummedia/gitlabhq,ferdinandrosario/gitlabhq,mavimo/gitlabhq,ngpestelos/gitlabhq,Kambda/Mobbr,DanielZhangQingLong/gitlabhq,nmav/gitlabhq,jrjang/gitlab-ce,lvfeng1130/gitlabhq,fgbreel/gitlabhq,LytayTOUCH/gitlabhq,tempbottle/gitlabhq,rhels/gitlabhq,yatish27/gitlabhq,it33/gitlabhq,martijnvermaat/gitlabhq,stanhu/gitlabhq,mmkassem/gitlabhq,OlegGirko/gitlab-ce,yulchitaj/TEST3,tk23/gitlabhq,kotaro-dev/gitlab-6-9,pkallberg/tjenare,mente/gitlabhq,ArthurHoaro/Public-GitLab,Burick/gitlabhq,revaret/gitlabhq,duduribeiro/gitlabhq,sideci-sample/sideci-sample-gitlabhq,szechyjs/gitlabhq,since2014/gitlabhq,sekcheong/gitlabhq,LUMC/gitlabhq,8thcolor/eurucamp2014-htdsadr,joalmeid/gitlabhq,k4zzk/gitlabhq,ferdinandrosario/gitlabhq,akumetsuv/gitlab,fearenales/gitlabhq,xuvw/gitlabhq,youprofit/gitlabhq,manfer/gitlabhq,ArthurHoaro/Public-GitLab,8thcolor/testing-public-gitlabhq,stoplightio/gitlabhq,ngpestelos/gitlabhq,tempbottle/gitlabhq,zrbsprite/gitlabhq,SVArago/gitlabhq,per-garden/gitlabhq,yonglehou/gitlabhq,yonglehou/gitlabhq,Exeia/gitlabhq,adaiguoguo/gitlab_globalserarch,WSDC-NITWarangal/gitlabhq,screenpages/gitlabhq,bigsurge/gitlabhq,bladealslayer/gitlabhq,childbamboo/gitlabhq,folpindo/gitlabhq,julianengel/gitlabhq,NKMR6194/gitlabhq,bbodenmiller/gitlabhq,fearenales/gitlabhq,goeun/myRepo,jrjang/gitlab-ce,nguyen-tien-mulodo/gitlabhq,allysonbarros/gitlabhq,kitech/gitlabhq,zBMNForks/gitlabhq,8thcolor/eurucamp2014-htdsadr,LytayTOUCH/gitlabhq,adaiguoguo/gitlab_globalserarch,gorgee/gitlabhq,whluwit/gitlabhq,ttasanen/gitlabhq,sue445/gitlabhq,williamherry/gitlabhq,tk23/gitlabhq,mente/gitlabhq,Tyrael/gitlabhq,rumpelsepp/gitlabhq,Soullivaneuh/gitlabhq,Devin001/gitlabhq,hq804116393/gitlabhq,ibiart/gitlabhq,rfeese/gitlab-ce,iiet/iiet-git,pjknkda/gitlabhq,sonalkr132/gitlabhq,michaKFromParis/gitlabhq,openwide-java/gitlabhq,koreamic/gitlabhq,flashbuckets/gitlabhq,SVArago/gitlabhq,ttasanen/gitlabhq,LUMC/gitlabhq,ZeoAlliance/gitlabhq,yonglehou/gitlabhq,jrjang/gitlabhq,pkallberg/tjenare,louahola/gitlabhq,jrjang/gitlab-ce,bozaro/gitlabhq,it33/gitlabhq,childbamboo/gitlabhq,copystudy/gitlabhq,daiyu/gitlab-zh,mathstuf/gitlabhq,fantasywind/gitlabhq,michaKFromParis/gitlabhqold,michaKFromParis/gitlabhqold,phinfonet/mobbr-gitlabhq,SkyWei/gitlabhq,NKMR6194/gitlabhq,stellamiranda/mobbr-gitlabhq,SkyWei/gitlabhq,per-garden/gitlabhq,martijnvermaat/gitlabhq,larryli/gitlabhq,duduribeiro/gitlabhq,whluwit/gitlabhq,pjknkda/gitlabhq,joalmeid/gitlabhq