rewritten the tags and branches loop
Merge commit '72d258f9a4fffc2204ddba21377da5a6b58b2c5b'