emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 93562d9 073/145: fix default directory during st


From: ELPA Syncer
Subject: [elpa] externals/vc-got 93562d9 073/145: fix default directory during stage operation
Date: Thu, 9 Sep 2021 15:58:36 -0400 (EDT)

branch: externals/vc-got
commit 93562d9b0682de5ff42145dc3d615cff3b0e9fab
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    fix default directory during stage operation
---
 vc-got-stage.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vc-got-stage.el b/vc-got-stage.el
index 6e85b11..1caa93d 100644
--- a/vc-got-stage.el
+++ b/vc-got-stage.el
@@ -143,7 +143,8 @@ If FILESET is nil, show the diff for every staged hunks."
 (defun vc-got-stage-commit ()
   "Commit staged hunks."
   (interactive)
-  (let* ((buf (get-buffer-create "*vc-got-stage-commit*"))
+  (let* ((default-directory (vc-got-root default-directory))
+         (buf (get-buffer-create "*vc-got-stage-commit*"))
          (status (vc-got--status "M" "."))
          (staged-files (cl-loop for (file _ staged) in status
                                 when staged



reply via email to

[Prev in Thread] Current Thread [Next in Thread]