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

Re: Buffered value should be shown when requesting username for remote authentication

From
Jeff King <peff@peff.net>
Date
Sep 12, 2017, 15:33 UTC
Message-ID
<20170912153355.mbsybuy3kqtfvmtd@sigill.intra.peff.net>
In-Reply-To
<1505220449.27800.23.camel@gmail.com>
On Tue, Sep 12, 2017 at 06:17:29PM +0530, Kaartic Sivaraam wrote:
Show 13 quoted lines
> I noted a little issue with the interaction to a remote git repository.
> The issue occurs when the network used for remote communication is a
> bit sluggish. The main issue is illustrated by the following shell
> interaction,
> 
>     $ git push -u fork 
>     sivaraamUsername for '    https://github.com'    : sivaraam
>     Password for '    https://sivaraamsivaraam@github.com':     
> 
>     It's a little odd that the (buffered) input found before the request
>     for 'Username' is also appended to the input found after the request.
>     This might not be obvious to the user and he has to retype the
>     'Username' in the next try.

If I understand right, you typed "sivaraam" once, then the network lagged, then you typed "sivaraam" again.

That isn't really something that Git can fix reliably. Reading those characters and echoing them back to the terminal is handled by your terminal driver (and potentially other things like ssh). Git may have received "sivaraamsivaraam" all at once, depending on where the lag is.

-Peff
Previous: Kaartic SivaraamNext: Kaartic Sivaraam
Message 2 of 3 in “Buffered value should be shown when requesting username for remote authentication”
  1. Kaartic SivaraamSep 12, 2017
  2. Jeff KingSep 12, 2017
  3. Kaartic SivaraamSep 13, 2017

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.