Modified the `repo_dump` and `repo_restore` rake tasks to properly dump and restore repositories based on their `path` rather than their (project) `name`. The project name can be uppercase and may contain spaces. This caused the repository to be restored as a different `path` that it was initially created as, thus, breaking the `git remote` and the web interface can no longer detect the repository either because it searches by `path` and not by `name`. Also, when restoring the permissions are incorrect making it impossible to push new commits to the remote repository. So now on success it'll set the correct permissions (but requires that the `gitlab` user has `sudo` privileges, or this task must be executed as root).
Modified the `repo_dump` and `repo_restore` rake tasks to properly dump and restore repositories based on their `path` rather than their (project) `name`. The project name can be uppercase and may contain spaces. This caused the repository to be restored as a different `path` that it was initially created as, thus, breaking the `git remote` and the web interface can no longer detect the repository either because it searches by `path` and not by `name`. Also, when restoring the permissions are incorrect making it impossible to push new commits to the remote repository. So now on success it'll set the correct permissions (but requires that the `gitlab` user has `sudo` privileges, or this task must be executed as root).

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