Fix git command shim

References: https://github.com/vlaci/nix-doom-emacs/issues/5
This commit is contained in:
László Vaskó
2020-03-16 19:12:24 +01:00
parent 7add1505c0
commit 4502c27759

View File

@ -49,7 +49,7 @@
, runCommand
, fetchFromGitHub
, substituteAll
, writeScriptBin
, writeShellScriptBin
, writeTextDir }:
let
@ -163,8 +163,9 @@ let
# I don't know why but byte-compilation somehow triggers Emacs to look for
# the git executable. It does not seem to be executed though...
git = writeScriptBin "git" ''
>&2 echo Executing git is not allowed; command line: "$@"
git = writeShellScriptBin "git" ''
>&2 echo "Executing git is not allowed; command line:" "$@"
exit 127
'';
in (straight-env.emacsEnv {
inherit packages;