branch: elpa/magit
commit 87e8950d64bc3974c68283d31905b41726dfb84a
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    magit-process-environment: Use correct variable
    
    If the option names a non-existent directory, then githooks
    cannot be used.  The private variable is nil in that case.
---
 lisp/magit-process.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/magit-process.el b/lisp/magit-process.el
index c4e1484397..6ec2b5650f 100644
--- a/lisp/magit-process.el
+++ b/lisp/magit-process.el
@@ -541,7 +541,7 @@ eol conversion."
      `(,@magit-git-environment
        ,@process-environment))
     (`(,@magit-git-environment
-       ,@(and magit-overriding-githook-directory
+       ,@(and magit--overriding-githook-directory
               (list (concat "SHADOWED_GITHOOK_DIRECTORY="
                             (magit--shadowed-githook-directory))))
        ;; The various w32 hacks are only applicable when running on the

Reply via email to