mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
fix quoting issue
This commit is contained in:
parent
ff5dbcbba4
commit
05f9968ccf
2 changed files with 5 additions and 4 deletions
|
|
@ -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}",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
from pycalver import __main__
|
# import pycalver.__main__ as main
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue