chiark / gitweb /
Fixed completion function hardcoding .git/.
[stgit] / 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 ()