From 4dab5f86712b212060842c4ed028331e72cc0e3b Mon Sep 17 00:00:00 2001
From: Dmitry Gutov <dgutov@yandex.ru>
Date: Tue, 29 Nov 2022 18:01:19 +0200
Subject: [PATCH] * lisp/progmodes/project.el (project-vc-name): Fix the :type
 form (bug#48747).

---
 lisp/progmodes/project.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 5b8648031fb..690b9bb5cd6 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -407,7 +407,8 @@ you might have to restart Emacs to see the effect."
 
 The best way to change the value a VC project reports as its
 name, is by setting this in .dir-locals.el."
-  :type 'string
+  :type '(choice (const :tag "Default to the base name" nil)
+                 (string :tag "Custom name"))
   :version "29.1"
   :safe #'stringp)
 
-- 
2.39.5