Ignore git tag if pre_version is specified

Change-Id: Id24f82daed26b5eb4e5f25206f30dd581623bd9b