summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2008-01-22 16:44:09 +0000
committerClint Adams <clint@users.sourceforge.net>2008-01-22 16:44:09 +0000
commitdd703246bbd73fd39f74cdedfac786e9e91e4444 (patch)
tree5849e2ed728b504d68658747f3d8994b22c9ec9c
parent088e8a9c8d19d0675bde3fabdde1b1e35129725b (diff)
downloadzsh-dd703246bbd73fd39f74cdedfac786e9e91e4444.tar.gz
zsh-dd703246bbd73fd39f74cdedfac786e9e91e4444.tar.xz
zsh-dd703246bbd73fd39f74cdedfac786e9e91e4444.zip
24437: compensate for some breakage introduced by 24396.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_git3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 42e341db7..ac038944d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-01-22  Clint Adams  <clint@zsh.org>
+
+	* 24437: Completion/Unix/Command/_git: compensate for
+	some breakage introduced by 24396.
+
 2008-01-22  Peter Stephenson  <pws@csr.com>
 
 	* 24434: Src/Zle/zle_refresh.c: handle unprintable and zero-width
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 1b02e4aa8..e76f7cc24 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -2655,8 +2655,7 @@ __git_tree_files () {
   integer at_least_one_tree_added
   local -a tree_files
 
-  Path=${1%/*}/
-  [[ $Path = / ]] && Path=.
+  Path=${1:h}/
   shift
   (( at_least_one_tree_added = 0 ))
   for tree in $*; do