about summary refs log tree commit diff
path: root/pkgs/applications/version-management/git
diff options
context:
space:
mode:
authorYueh-Shun Li <44064051+ShamrockLee@users.noreply.github.com>2023-04-03 20:26:32 +0800
committerYueh-Shun Li <44064051+ShamrockLee@users.noreply.github.com>2023-04-03 20:26:32 +0800
commitb5d052d438df99d5a80e7c126551656d5ba74f75 (patch)
treef61dff7a4285189222f3684f2c5c48905d50ead2 /pkgs/applications/version-management/git
parent820dc2a56057bcc396dbddbff6be91e1cec73f6f (diff)
git: fix in completion scripts references to environment utils
Diffstat (limited to 'pkgs/applications/version-management/git')
-rw-r--r--pkgs/applications/version-management/git/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/version-management/git/default.nix b/pkgs/applications/version-management/git/default.nix
index 59bbe8e414440..6464b501c4f9f 100644
--- a/pkgs/applications/version-management/git/default.nix
+++ b/pkgs/applications/version-management/git/default.nix
@@ -185,6 +185,7 @@ 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=(
@@ -202,7 +203,8 @@ 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/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}
 
 
       # Also put git-http-backend into $PATH, so that we can use smart