Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix problems with user prompts in git lfs clone#1185

Merged
sinbad merged 1 commit into
masterfrom
lfs-clone-user-prompts
Apr 28, 2016
Merged

Fix problems with user prompts in git lfs clone#1185
sinbad merged 1 commit into
masterfrom
lfs-clone-user-prompts

Conversation

@sinbad

@sinbad sinbad commented Apr 27, 2016

Copy link
Copy Markdown
Contributor

Fixes #1159

Stop using the psuedo-tty & pass through streams directly. Getting pty to work with stdin was too difficult, even when it worked passwords were displayed on the terminal which is no good. We no longer need to filter the stderr for known warnings; Git 2.8 is now released which deals with them and for Git 2.7 and below we can fall back on cat instead of a blank filter; it's slightly slower but eliminates the problem more simply. We used to do this for git < 2.2 anyway which didn't support blank filters at all.

Stop using the psuedo-tty & pass through streams directly. Getting pty
to work with stdin was too difficult, even when it worked passwords were
displayed on the terminal which is no good. We no longer need to filter
the stderr for known warnings; Git 2.8 is now released which deals with
them and for Git 2.7 and below we can fall back on `cat` instead of a
blank filter; it's slightly slower but eliminates the problem more
simply.
@sinbad sinbad added the review label Apr 27, 2016
@technoweenie

Copy link
Copy Markdown
Contributor

🤘 I'm glad that stderr handling code is gone. Looked fragile :)

@sinbad sinbad merged commit 54c5efa into master Apr 28, 2016
@sinbad sinbad deleted the lfs-clone-user-prompts branch April 28, 2016 08:13
sinbad added a commit that referenced this pull request Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants