about summary refs log tree commit diff
path: root/pkgs/applications/version-management/git
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2023-05-08 22:01:21 +0200
committerGitHub <noreply@github.com>2023-05-08 22:01:21 +0200
commitcc8e3e9c1f52395c996a6ec1924b21ec17bff86a (patch)
tree4902fa699a497b87c4363dadcc4097263952df98 /pkgs/applications/version-management/git
parent54295bf9766b179b0c1d32e725d07188d8636295 (diff)
parentb03cc9ce119e686283b3017c7bc0414c635bd044 (diff)
Merge pull request #229540 from ShamrockLee/git-fix-ls
Revert #224474, git completion command patching
Diffstat (limited to 'pkgs/applications/version-management/git')
-rw-r--r--pkgs/applications/version-management/git/default.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgs/applications/version-management/git/default.nix b/pkgs/applications/version-management/git/default.nix
index e037dfc51c61c..d23df0c8062c5 100644
--- a/pkgs/applications/version-management/git/default.nix
+++ b/pkgs/applications/version-management/git/default.nix
@@ -186,14 +186,12 @@ stdenv.mkDerivation (finalAttrs: {
 
       # Fix references to the perl, sed, awk and various coreutil binaries used by
       # shell scripts that git calls (e.g. filter-branch)
-      # and completion scripts
       SCRIPT="$(cat <<'EOS'
         BEGIN{
           @a=(
             '${gnugrep}/bin/grep', '${gnused}/bin/sed', '${gawk}/bin/awk',
             '${coreutils}/bin/cut', '${coreutils}/bin/basename', '${coreutils}/bin/dirname',
-            '${coreutils}/bin/wc', '${coreutils}/bin/tr',
-            '${coreutils}/bin/ls'
+            '${coreutils}/bin/wc', '${coreutils}/bin/tr'
             ${lib.optionalString perlSupport ", '${perlPackages.perl}/bin/perl'"}
           );
         }
@@ -204,8 +202,7 @@ stdenv.mkDerivation (finalAttrs: {
       EOS
       )"
       perl -0777 -i -pe "$SCRIPT" \
-        $out/libexec/git-core/git-{sh-setup,filter-branch,merge-octopus,mergetool,quiltimport,request-pull,submodule,subtree,web--browse} \
-        $out/share/bash-completion/completions/{git,gitk}
+        $out/libexec/git-core/git-{sh-setup,filter-branch,merge-octopus,mergetool,quiltimport,request-pull,submodule,subtree,web--browse}
 
 
       # Also put git-http-backend into $PATH, so that we can use smart