fix string formatting error in git commands for release script

Signed-off-by: Harsha Narayana <harsha2k4@gmail.com>
This commit is contained in:
Harsha Narayana 2018-12-09 19:47:02 +05:30
parent e13053ed89
commit 5189d8b14c
No known key found for this signature in database
GPG Key ID: 8AF211CB60D4B28C

View File

@ -10,9 +10,9 @@ from subprocess import Popen, PIPE
GIT_COMMANDS = { GIT_COMMANDS = {
"get_tag": ["git describe --tags --abbrev=0"], "get_tag": ["git describe --tags --abbrev=0"],
"create_new_branch": ["git checkout -b {new_version} master"], "create_new_branch": ["git checkout -b {new_version} master"],
"commit_version_change": ["git commit -m 'Bumping up version from {current_version} to {new_version}"], "commit_version_change": ["git commit -m 'Bumping up version from {current_version} to {new_version}'"],
"push_new_branch": ["git push origin {new_version}"], "push_new_branch": ["git push origin {new_version}"],
"create_new_tag": ["git tag -a {new_version} -m 'Bumping up version from {current_version} to {new_version}"], "create_new_tag": ["git tag -a {new_version} -m 'Bumping up version from {current_version} to {new_version}'"],
"push_tag": ["git push origin {new_version}"], "push_tag": ["git push origin {new_version}"],
"get_change_log": ['git log --no-merges --pretty=format:"%h: %cn: %s" {current_version}..'] "get_change_log": ['git log --no-merges --pretty=format:"%h: %cn: %s" {current_version}..']
} }