From 56e8eb9bc0696cee918673166e027b949e17c840 Mon Sep 17 00:00:00 2001 From: Bruce Schultz Date: Wed, 3 Aug 2022 11:03:10 +0200 Subject: [PATCH] fix: add quotes to path in "add_path" subcommand --- src/bumpver/vcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bumpver/vcs.py b/src/bumpver/vcs.py index 83844ae..d2a5b7e 100644 --- a/src/bumpver/vcs.py +++ b/src/bumpver/vcs.py @@ -48,7 +48,7 @@ VCS_SUBCOMMANDS_BY_NAME = { 'fetch' : "git fetch", 'ls_tags' : "git tag --list", 'status' : "git status --porcelain", - 'add_path' : "git add --update {path}", + 'add_path' : "git add --update '{path}'", 'commit' : "git commit --message '{message}'", 'tag' : "git tag --annotate {tag} --message {tag}", 'push_tag' : "git push {remote} --follow-tags {tag} HEAD",