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

Re: Minor bug in bash completion

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Dec 30, 2009, 11:22 UTC
Message-ID
<20091230112222.GA493@neumann>
In-Reply-To
<4B3A140A.60302@steek.com>
Hi Sylvain,
On Tue, Dec 29, 2009 at 03:36:58PM +0100, Sylvain RABOT wrote:
Show 5 quoted lines
> I found a bug in the git bash completion.
> It occurs when I press tab to complete branch name when I want to pull  
> from the origin.
> Instead of completing the branch name it prompts me directly for my  
> password on the origin remote.

I don't think it's a bug. The completion script should offer the currently available refs in the remote repository after a 'git pull <remote> <TAB>'. In order to do that it contacts the remote repository for the list of refs available there. Depending on the access method, it might need to authenticate, in your case via ssh. To silence the password prompts you should change your ssh configuration to use key-based authentication when logging in to the remote repository's server (just google for 'ssh login without password').

Best, Gábor

Previous: Sylvain RABOTNext: Sylvain Rabot
Message 2 of 4 in “Minor bug in bash completion”
  1. Sylvain RABOTDec 29, 2009
  2. SZEDER GáborDec 30, 2009
  3. Sylvain RabotDec 30, 2009
  4. Junio C HamanoDec 30, 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.