135
140
_run_shell_command("git fetch origin +refs/meta/*:refs/remotes/meta/*")
136
141
milestone_cmd = "git show meta/openstack/release:%s" % branch_name
137
142
milestonever = _run_shell_command(milestone_cmd)
140
148
post_version = _get_git_post_version()
141
149
# post version should look like:
143
151
# where the bit after the last . is the short sha, and the bit between
144
152
# the last and second to last is the revno count
145
153
(revno, sha) = post_version.split(".")[-2:]
147
154
second_half = "%s%s.%s" % (revno_prefix, revno, sha)
148
155
return ".".join((first_half, second_half))