Fix check for tags.
Fix check for tags.

If there is a branch with the same name as a tag it fails without the
--tags. This was only a problem when we're branching from a git tag.

Signed-off-by: Daniel Nephin <6347c07ae509164cffebfb1e2a0d6ed64958db19@docker.com>

rillig/docker.github.io,thaJeztah/docker.github.io,johnstep/docker.github.io,kojiromike/compose,londoncalling/docker.github.io,thaJeztah/docker.github.io,hoogenm/compose,KevinGreene/compose,KalleDK/compose,shin-/compose,BSWANG/denverdino.github.io,denverdino/docker.github.io,alexandrev/compose,LuisBosquez/docker.github.io,sanscontext/docker.github.io,johnstep/docker.github.io,mdaue/compose,ChrisChinchilla/compose,ChrisChinchilla/compose,schmunk42/compose,anweiss/docker.github.io,BSWANG/denverdino.github.io,johnstep/docker.github.io,tiry/compose,joeuo/docker.github.io,shin-/compose,joaofnfernandes/docker.github.io,mrfuxi/compose,mdaue/compose,shubheksha/docker.github.io,alexisbellido/docker.github.io,LuisBosquez/docker.github.io,troy0820/docker.github.io,bdwill/docker.github.io,menglingwei/denverdino.github.io,funkyfuture/docker-compose,jrabbit/compose,sanscontext/docker.github.io,londoncalling/docker.github.io,GM-Alex/compose,danix800/docker.github.io,danix800/docker.github.io,menglingwei/denverdino.github.io,sdurrheimer/compose,twitherspoon/compose,phiroict/docker,moxiegirl/compose,docker-zh/docker.github.io,aduermael/docker.github.io,BSWANG/denverdino.github.io,michael-k/docker-compose,docker/docker.github.io,KevinGreene/compose,londoncalling/docker.github.io,shubheksha/docker.github.io,mnowster/compose,denverdino/compose,andrewgee/compose,mnowster/compose,jzwlqx/denverdino.github.io,jonaseck2/compose,jzwlqx/denverdino.github.io,shin-/docker.github.io,phiroict/docker,johnstep/docker.github.io,shin-/docker.github.io,TomasTomecek/compose,aduermael/docker.github.io,docker/docker.github.io,denverdino/docker.github.io,shin-/docker.github.io,shubheksha/docker.github.io,docker-zh/docker.github.io,dbdd4us/compose,denverdino/denverdino.github.io,denverdino/docker.github.io,denverdino/denverdino.github.io,JimGalasyn/docker.github.io,anweiss/docker.github.io,schmunk42/compose,swoopla/compose,thaJeztah/docker.github.io,BSWANG/denverdino.github.io,anweiss/docker.github.io,troy0820/docker.github.io,swoopla/compose,BSWANG/denverdino.github.io,moxiegirl/compose,menglingwei/denverdino.github.io,JimGalasyn/docker.github.io,JimGalasyn/docker.github.io,shubheksha/docker.github.io,bdwill/docker.github.io,londoncalling/docker.github.io,docker-zh/docker.github.io,alexandrev/compose,thaJeztah/compose,joaofnfernandes/docker.github.io,jzwlqx/denverdino.github.io,joeuo/docker.github.io,rillig/docker.github.io,gdevillele/docker.github.io,rillig/docker.github.io,michael-k/docker-compose,denverdino/docker.github.io,denverdino/compose,KalleDK/compose,sanscontext/docker.github.io,alexisbellido/docker.github.io,menglingwei/denverdino.github.io,joaofnfernandes/docker.github.io,jeanpralo/compose,bdwill/docker.github.io,andrewgee/compose,twitherspoon/compose,sanscontext/docker.github.io,phiroict/docker,kojiromike/compose,thaJeztah/docker.github.io,menglingwei/denverdino.github.io,sanscontext/docker.github.io,dbdd4us/compose,anweiss/docker.github.io,anweiss/docker.github.io,docker/docker.github.io,jzwlqx/denverdino.github.io,mrfuxi/compose,bdwill/docker.github.io,dnephin/compose,joeuo/docker.github.io,phiroict/docker,alexisbellido/docker.github.io,gdevillele/docker.github.io,shubheksha/docker.github.io,joeuo/docker.github.io,viranch/compose,vdemeester/compose,danix800/docker.github.io,LuisBosquez/docker.github.io,aduermael/docker.github.io,alexisbellido/docker.github.io,gdevillele/docker.github.io,funkyfuture/docker-compose,gdevillele/docker.github.io,gdevillele/docker.github.io,troy0820/docker.github.io,denverdino/denverdino.github.io,denverdino/denverdino.github.io,GM-Alex/compose,dnephin/compose,docker-zh/docker.github.io,vdemeester/compose,JimGalasyn/docker.github.io,rillig/docker.github.io,shin-/docker.github.io,phiroict/docker,troy0820/docker.github.io,joaofnfernandes/docker.github.io,tiry/compose,viranch/compose,LuisBosquez/docker.github.io,jzwlqx/denverdino.github.io,aduermael/docker.github.io,londoncalling/docker.github.io,jonaseck2/compose,shin-/docker.github.io,denverdino/docker.github.io,danix800/docker.github.io,joaofnfernandes/docker.github.io,JimGalasyn/docker.github.io,jrabbit/compose,bdwill/docker.github.io,denverdino/denverdino.github.io,hoogenm/compose,sdurrheimer/compose,joeuo/docker.github.io,docker/docker.github.io,docker-zh/docker.github.io,jeanpralo/compose,thaJeztah/docker.github.io,alexisbellido/docker.github.io,TomasTomecek/compose,docker/docker.github.io,LuisBosquez/docker.github.io,thaJeztah/compose,johnstep/docker.github.io