git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[StGIT PATCH 6/6] Fixed completion function hardcoding .git/.

From
Yann Dirson <ydirson@altern.org>
Date
Aug 2, 2007, 20:18 UTC
Message-ID
<20070802201841.16614.85746.stgit@gandelf.nowhere.earth>
In-Reply-To
<20070802200704.16614.57993.stgit@gandelf.nowhere.earth>
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 ()
Previous: Yann DirsonNext: Catalin Marinas
Message 7 of 8 in “Various contrib/ updates”
  1. 0/6 Various contrib/ updatesYann Dirson, Aug 2, 2007
  2. 1/6 Improve stg-fold-files-from doc.Yann Dirson, Aug 2, 2007
  3. 2/6 New contrib scripts: stg-dispatch and stg-show.Yann Dirson, Aug 2, 2007
  4. 3/6 Add -O flag to stg-fold-files-from.Yann Dirson, Aug 2, 2007
  5. 4/6 Add a no-act flag to stg-dispatch and stg-fold-file-from.Yann Dirson, Aug 2, 2007
  6. 5/6 Provide file completion for add/resolved/refresh based on status.Yann Dirson, Aug 2, 2007
  7. 6/6 Fixed completion function hardcoding .git/.Yann Dirson, Aug 2, 2007
  8. Catalin MarinasAug 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.