Allow detached head when parsing master ref.
Allow detached head when parsing master ref.

If we have checked out a commit instead of a branch name, git is in what’s known as “detached head” state.

This is what Travis does all the time.

This means that we were never considered to be on the branch “master”, and therefore were never publishing bower-chosen.

We can tweak the git command we’re calling to support either checked out branch names or detached heads — as long as we’re at the commit for a commit that is the head of master, we’re peachykeen!

chandre21cn/chosen,christophercaburog/chosen,isochronous/chosen,SugarOverflow/chosen,itfrogs/chosen,raphaelcruz/chosen,landonb/chosen,codesharpdev/chosen,micgro42/chosen,ansiz/chosen,philwolstenholme/chosen,bduncan-vm/chosen,M0nsterLabs/chosen,harikt/chosen,philwolstenholme/chosen,landonb/chosen,redrambles/chosen,arxes-tolina/chosen,cybernet14/chosen,willjones1977/chosen,StephanieMak/chosen,landonb/chosen,modulexcite/chosen,glasscubes/chosen,sunkanmi-akintoye/chosen,therebelrobot/chosen,laantorchaweb/chosen,arkhi/chosen,willjones1977/chosen,redrambles/chosen,ilyes14/chosen,BlaZeX/chosen,sunkanmi-akintoye/chosen,mengjuer/chosen,nayosx/chosen,itfrogs/chosen,jemmeliCss/chosen,gabizz/chosen,cjc343/chosen,bduncan-vm/chosen,xiaomiemie/chosen,ixiom/chosen,glasscubes/chosen,therebelrobot/chosen,MeteorAdminz/chosen,liorch88/chosen,chryse/chosen,prashen/chosen,philwolstenholme/chosen,claimsmall/chosen,skyangelzp/chosen,christophercaburog/chosen,ixiom/chosen,nayosx/chosen,taracila/chosen,BlaZeX/chosen,ilyes14/chosen,cybernet14/chosen,ilyes14/chosen,prashen/chosen,cjc343/chosen,arxes-tolina/chosen,M0nsterLabs/chosen,mubassirhayat/chosen,StephanieMak/chosen,xiaomiemie/chosen,xiaomiemie/chosen,beyond4453/chosen,ixiom/chosen,ansiz/chosen,bbqsrc/chosen,micgro42/chosen,isochronous/chosen,chandre21cn/chosen,upcesar/chosen,bbqsrc/chosen,mcanthony/chosen,rockmandew/chosen,beyond4453/chosen,Burick/chosen,therebelrobot/chosen,hryniu555/chosen,beyond4453/chosen,gabizz/chosen,claimsmall/chosen,Moykn/chosen,beyond4453/chosen,arxes-tolina/chosen,glasscubes/chosen,Burick/chosen,M0nsterLabs/chosen,taracila/chosen,isochronous/chosen,mcanthony/chosen,sunkanmi-akintoye/chosen,bbqsrc/chosen,jemmeliCss/chosen,christophercaburog/chosen,thewulf7/chosen,SugarOverflow/chosen,chirilo/chosen,chirilo/chosen,tleish/chosen,thewulf7/chosen,chryse/chosen,raphaelcruz/chosen,upcesar/chosen,StephanieMak/chosen,chirilo/chosen,nayosx/chosen,landonb/chosen,liorch88/chosen,mengjuer/chosen,arkhi/chosen,chryse/chosen,Moykn/chosen,upcesar/chosen,Burick/chosen,chandre21cn/chosen,kaviarasankk/chosen,kaviarasankk/chosen,hryniu555/chosen,cjc343/chosen,micgro42/chosen,bduncan-vm/chosen,BlaZeX/chosen,arkhi/chosen,tleish/chosen,willjones1977/chosen,Moykn/chosen,prashen/chosen,KimberlyMunoz/chosen,claimsmall/chosen,ansiz/chosen,modulexcite/chosen,chandre21cn/chosen,therebelrobot/chosen,harikt/chosen,isochronous/chosen,raphaelcruz/chosen,bduncan-vm/chosen,kaviarasankk/chosen,tleish/chosen,chirilo/chosen,Burick/chosen,modulexcite/chosen,mengjuer/chosen,mubassirhayat/chosen,iamcal/chosen,hryniu555/chosen,gabizz/chosen,Moykn/chosen,rockmandew/chosen,codesharpdev/chosen,rockmandew/chosen,brees01/chosen,skyangelzp/chosen,glasscubes/chosen,cybernet14/chosen,liorch88/chosen,mengjuer/chosen,prashen/chosen,ixiom/chosen,laantorchaweb/chosen,itfrogs/chosen,MeteorAdminz/chosen,harikt/chosen,thewulf7/chosen,iamcal/chosen,codesharpdev/chosen,nayosx/chosen,itfrogs/chosen,skyangelzp/chosen,ansiz/chosen,sunkanmi-akintoye/chosen,arkhi/chosen,liorch88/chosen,rockmandew/chosen,modulexcite/chosen,BlaZeX/chosen,taracila/chosen,micgro42/chosen,taracila/chosen,codesharpdev/chosen,upcesar/chosen,redrambles/chosen,mubassirhayat/chosen,KimberlyMunoz/chosen,tleish/chosen,brees01/chosen,cjc343/chosen,KimberlyMunoz/chosen,raphaelcruz/chosen,mcanthony/chosen,KimberlyMunoz/chosen,brees01/chosen,mubassirhayat/chosen,laantorchaweb/chosen,harikt/chosen,ilyes14/chosen,christophercaburog/chosen,gabizz/chosen,cybernet14/chosen,jemmeliCss/chosen,laantorchaweb/chosen,mcanthony/chosen,kaviarasankk/chosen,redrambles/chosen,willjones1977/chosen,M0nsterLabs/chosen,thewulf7/chosen,skyangelzp/chosen,iamcal/chosen,brees01/chosen,claimsmall/chosen,hryniu555/chosen,iamcal/chosen,chryse/chosen,MeteorAdminz/chosen,philwolstenholme/chosen,jemmeliCss/chosen,StephanieMak/chosen,xiaomiemie/chosen,bbqsrc/chosen