branch: elpa/git-commit commit 87e68e0a8ea7803f0ffbc412b8a10f1fd2f75581 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-tag-release: Fix case when no default is detected Closes #4803. --- lisp/magit-tag.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/magit-tag.el b/lisp/magit-tag.el index f127f13af9..b781748273 100644 --- a/lisp/magit-tag.el +++ b/lisp/magit-tag.el @@ -177,7 +177,7 @@ like \"/path/to/foo-bar\"." (tag (cond ((not ptag) (read-string "Create first release tag: " - (if (string-match-p "\\`[0-9]" ver) + (if (and ver (string-match-p "\\`[0-9]" ver)) (concat "v" ver) ver))) (ver