chiark / gitweb /
Fixed completion function hardcoding .git/.
authorYann Dirson <ydirson@altern.org>
Mon, 20 Aug 2007 21:36:00 +0000 (22:36 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 20 Aug 2007 21:36:32 +0000 (22:36 +0100)
Signed-off-by: Yann Dirson <ydirson@altern.org>
contrib/stgit-completion.bash

index 2d0d5f23224cbbd8b4e242ba890426839b22a7d2..7ae9e6a8bb03bbcc3766ea3f3e5369881d4f3b23 100644 (file)
@@ -108,7 +108,7 @@ _all_other_patches ()
 _all_branches ()
 {
     local g=$(_gitdir)
-    [ "$g" ] && (cd .git/patches/ && echo *)
+    [ "$g" ] && (cd $g/patches/ && echo *)
 }
 
 _conflicting_files ()