Fixed updating branches and tags