Better regex for detecting stable version tags (fixes #1772)

This commit is contained in:
Steve Purcell 2014-06-17 10:35:10 +01:00
parent 550bf0e44f
commit 3256ef2f6b

View file

@ -434,7 +434,7 @@ Return a cons cell whose `car' is the root and whose `cdr' is the repository."
(let* ((bound (goto-char (point-max)))
(tag-version (and (pb/run-process dir "git" "tag")
(or (pb/find-tag-version-newest
"^v?\\([^ \t\n]+\\)$" bound)
"^\\(?:v[.-]?\\)?\\([0-9]+[^ \t\n]*\\)$" bound)
(error
"No valid stable versions found for %s"
name)))))