mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-11 13:07:28 -05:00
Fix git command shim
References: https://github.com/vlaci/nix-doom-emacs/issues/5
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
, runCommand
|
, runCommand
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, substituteAll
|
, substituteAll
|
||||||
, writeScriptBin
|
, writeShellScriptBin
|
||||||
, writeTextDir }:
|
, writeTextDir }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@@ -163,8 +163,9 @@ let
|
|||||||
|
|
||||||
# I don't know why but byte-compilation somehow triggers Emacs to look for
|
# 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...
|
# the git executable. It does not seem to be executed though...
|
||||||
git = writeScriptBin "git" ''
|
git = writeShellScriptBin "git" ''
|
||||||
>&2 echo Executing git is not allowed; command line: "$@"
|
>&2 echo "Executing git is not allowed; command line:" "$@"
|
||||||
|
exit 127
|
||||||
'';
|
'';
|
||||||
in (straight-env.emacsEnv {
|
in (straight-env.emacsEnv {
|
||||||
inherit packages;
|
inherit packages;
|
||||||
|
Reference in New Issue
Block a user