From 73ccdcff0a0a11ec260764d821b41eb066577863 Mon Sep 17 00:00:00 2001 From: Clint Adams Date: Tue, 22 Jan 2008 17:07:16 +0000 Subject: 24441: compensate for some breakage introduced by 24396. --- ChangeLog | 2 +- Completion/Unix/Command/_git | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ac038944d..59703b852 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 2008-01-22 Clint Adams - * 24437: Completion/Unix/Command/_git: compensate for + * 24437, 24441: Completion/Unix/Command/_git: compensate for some breakage introduced by 24396. 2008-01-22 Peter Stephenson diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index e76f7cc24..71d006074 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -2655,7 +2655,7 @@ __git_tree_files () { integer at_least_one_tree_added local -a tree_files - Path=${1:h}/ + [[ "$1" == */ ]] && Path="$1" || Path="${1:h}/" shift (( at_least_one_tree_added = 0 )) for tree in $*; do -- cgit 1.4.1