From 4502c277596ea4f7cfdc0a6b77aba1d68faedab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Mon, 16 Mar 2020 19:12:24 +0100 Subject: [PATCH] Fix git command shim References: https://github.com/vlaci/nix-doom-emacs/issues/5 --- default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/default.nix b/default.nix index abf9cf5..6c7bce1 100644 --- a/default.nix +++ b/default.nix @@ -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;