]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix misleading prompt in vc-git-create-tag
authorVisuwesh <visuweshm@gmail.com>
Sat, 8 Oct 2022 13:13:48 +0000 (15:13 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 Oct 2022 13:13:48 +0000 (15:13 +0200)
* lisp/vc/vc-git.el (vc-git-create-tag): Actually pass the DEFAULT
argument to vc-read-revision (bug#58378).

lisp/vc/vc-git.el

index f9dae8b9ea398edde2528f9087a146a710839e4d..ea06ccaf8702781696a4f21037d2821252f23801 100644 (file)
@@ -1635,7 +1635,7 @@ This requires git 1.8.4 or later, for the \"-L\" option of \"git log\"."
         (start-point (when branchp (vc-read-revision
                                     (format-prompt "Start point"
                                                    (car (vc-git-branches)))
-                                    (list dir) 'Git))))
+                                    (list dir) 'Git (car (vc-git-branches))))))
     (and (or (zerop (vc-git-command nil t nil "update-index" "--refresh"))
              (y-or-n-p "Modified files exist.  Proceed? ")
              (user-error (format "Can't create %s with modified files"