aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/git-subrepo/zsh-completion.patch
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/git-subrepo/zsh-completion.patch')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/git-subrepo/zsh-completion.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/git-subrepo/zsh-completion.patch b/infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/git-subrepo/zsh-completion.patch
new file mode 100644
index 000000000000..dcba5ba6eea1
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/applications/version-management/git-and-tools/git-subrepo/zsh-completion.patch
@@ -0,0 +1,32 @@
+diff --git a/pkg/bin/generate-completion.pl b/pkg/bin/generate-completion.pl
+index 85ae3b8..d3e423c 100644
+--- a/pkg/bin/generate-completion.pl
++++ b/pkg/bin/generate-completion.pl
+@@ -82,11 +82,6 @@ sub generate_zsh {
+
+ # DO NOT EDIT. This file generated by pkg/bin/generate-completion.pl.
+
+-if [[ -z $GIT_SUBREPO_ROOT ]]; then
+- echo 'GIT_SUBREPO_ROOT is null; has `/path/to/git-subrepo/.rc` been sourced?'
+- return 3
+-fi
+-
+ _git-subrepo() {
+ typeset -A opt_args
+ local curcontext="$curcontext" state line context
+diff --git a/share/zsh-completion/_git-subrepo b/share/zsh-completion/_git-subrepo
+index fc82be2..a8069d9 100644
+--- a/share/zsh-completion/_git-subrepo
++++ b/share/zsh-completion/_git-subrepo
+@@ -3,11 +3,6 @@
+
+ # DO NOT EDIT. This file generated by pkg/bin/generate-completion.pl.
+
+-if [[ -z $GIT_SUBREPO_ROOT ]]; then
+- echo 'GIT_SUBREPO_ROOT is null; has `/path/to/git-subrepo/.rc` been sourced?'
+- return 3
+-fi
+-
+ _git-subrepo() {
+ typeset -A opt_args
+ local curcontext="$curcontext" state line context