From ea51bec225f7ba79a3a3c9075d4b7851c9e13b4d Mon Sep 17 00:00:00 2001 From: Pavel Korshunov <pavel.korshunov@idiap.ch> Date: Mon, 9 Apr 2018 14:09:16 +0200 Subject: [PATCH] small bug fix --- release/release_bob.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/release_bob.py b/release/release_bob.py index 2e3414f..75fcb4f 100755 --- a/release/release_bob.py +++ b/release/release_bob.py @@ -157,7 +157,7 @@ def get_parsed_tag(gitpkg, tag): if 'major' == tag: # increment the first number in 'v#.#.#' but make minor and patch to be 0 return 'v' + str(int(latest_tag_name[0]) + 1) + '.0.0' if 'minor' == tag: # increment the second number in 'v#.#.#' but make patch to be 0 - return 'v' + latest_tag_name[:2] + str(int(latest_tag_name[3]) + 1) + '.0' + return 'v' + latest_tag_name[:2] + str(int(latest_tag_name[2]) + 1) + '.0' if 'patch' == tag: # increment the last number in 'v#.#.#' return 'v' + latest_tag_name[:-1] + str(int(latest_tag_name[-1]) + 1) -- GitLab