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

[BUG] git tab-completion gives error when "config" file exists in current directory

From
Jeremy O'Brien <obrien654j@gmail.com>
Date
Feb 4, 2009, 03:24 UTC
Message-ID
<20090204032431.GA25244@newo.ZoomTown.com>

If a file "config" is present in the current directory, and no .git/config or .gitconfig file exists, typing "git" and attempting tab completion of any of its commands will yield an odd error like "fatal: bad config file line 7 in config", as git tries to use this file as a git config file.

Cheers, Jeremy O'Brien

Message 1 of 1 in “[BUG] git tab-completion gives error when "config" file exists in current directory”
  1. Jeremy O'BrienFeb 4, 2009

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.