fix quoting issue

This commit is contained in:
Manuel Barkhau 2018-12-09 18:00:22 +01:00
parent ff5dbcbba4
commit 05f9968ccf
2 changed files with 5 additions and 4 deletions

View file

@ -23,6 +23,7 @@ import subprocess as sp
log = logging.getLogger("pycalver.vcs") log = logging.getLogger("pycalver.vcs")
VCS_SUBCOMMANDS_BY_NAME = { VCS_SUBCOMMANDS_BY_NAME = {
'git': { 'git': {
'is_usable': "git rev-parse --git-dir", 'is_usable': "git rev-parse --git-dir",
@ -31,8 +32,8 @@ VCS_SUBCOMMANDS_BY_NAME = {
'status' : "git status --porcelain", 'status' : "git status --porcelain",
'add_path' : "git add --update {path}", 'add_path' : "git add --update {path}",
'commit' : "git commit --file {path}", 'commit' : "git commit --file {path}",
'tag' : "git tag --annotate {tag} --message '{tag}'", 'tag' : "git tag --annotate {tag} --message {tag}",
'push_tag' : "git push origin '{tag}'", 'push_tag' : "git push origin {tag}",
}, },
'hg': { 'hg': {
'is_usable': "hg root", 'is_usable': "hg root",
@ -41,7 +42,7 @@ VCS_SUBCOMMANDS_BY_NAME = {
'status' : "hg status -mard", 'status' : "hg status -mard",
'add_path' : "hg add {path}", 'add_path' : "hg add {path}",
'commit' : "hg commit --logfile", 'commit' : "hg commit --logfile",
'tag' : "hg tag {tag} --message '{tag}'", 'tag' : "hg tag {tag} --message {tag}",
'push_tag' : "hg push {tag}", 'push_tag' : "hg push {tag}",
}, },
} }

View file

@ -1 +1 @@
from pycalver import __main__ # import pycalver.__main__ as main