From e5b4a6288d19c1153667bcafbc3088ac5f8a3065 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Mon, 23 Dec 2024 18:50:08 -0800 Subject: [PATCH] Include lightweight tags in treesit-admin--verify-major-mode-queries * lisp/treesit.el (treesit--language-git-revision): Include lightweight tags as well. (cherry picked from commit 32ad7342893833058ca2f7f8eca667bd32d42ea0) --- lisp/treesit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 0a4de2d2364..3d6eb142ef4 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -4005,7 +4005,7 @@ Return the output of \"git describe\". If anything goes wrong, return nil." (with-temp-buffer (cond - ((eq 0 (call-process "git" nil t nil "describe")) + ((eq 0 (call-process "git" nil t nil "describe" "--tags")) (string-trim (buffer-string))) ((eq 0 (progn (erase-buffer) (call-process "git" nil t nil "rev-parse" "HEAD"))) -- 2.39.5