[StGIT PATCH 6/6] Fixed completion function hardcoding .git/.
Signed-off-by: Yann Dirson <ydirson@altern.org>
---
contrib/stgit-completion.bash | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/stgit-completion.bash b/contrib/stgit-completion.bash
index 2d0d5f2..7ae9e6a 100644
--- a/contrib/stgit-completion.bash
+++ b/contrib/stgit-completion.bash
@@ -108,7 +108,7 @@ _all_other_patches ()
_all_branches ()
{
local g=$(_gitdir)
- [ "$g" ] && (cd .git/patches/ && echo *)
+ [ "$g" ] && (cd $g/patches/ && echo *)
}
_conflicting_files ()