From 9e1c419497c8b604174c4af5af90ebd8c3707a77 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Sun, 9 Mar 2008 12:29:52 +0000 Subject: 24702: fix 24701 --- ChangeLog | 2 +- Completion/Unix/Command/_git | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86148a574..2323d62c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 2008-03-09 Clint Adams - * 24701: Completion/Unix/Command/_git: use $service instead of + * 24701, 24702: Completion/Unix/Command/_git: use $service instead of $words[1] so completion will work if git is an alias to a wrapper. 2008-03-08 Peter Stephenson diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index d15f3599e..2724be7d0 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -4155,8 +4155,8 @@ __git_is_indexed () { __git_aliases_and_commands ;; (options) - curcontext="${curcontext%:*:*}:git-$service:" - _call_function ret _git-$service + curcontext="${curcontext%:*:*}:git-$words[1]:" + _call_function ret _git-$words[1] ;; esac else -- cgit 1.4.1