branch: externals/vc-got
commit 93562d9b0682de5ff42145dc3d615cff3b0e9fab
Author: Omar Polo <[email protected]>
Commit: Omar Polo <[email protected]>
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