diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-08-24 21:05:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-08-24 21:05:11 +0200 |
commit | 3f988231ae438e2fc98c94f870a9b266f93e1955 (patch) | |
tree | 3cb4bd283b76a32c247043179252a2529f5b9910 /compat | |
parent | Merge branch 'jk/maint-commit-check-committer-early' into maint-1.7.11 (diff) | |
parent | Enable HAVE_DEV_TTY for Solaris (diff) | |
download | git-3f988231ae438e2fc98c94f870a9b266f93e1955.tar.xz git-3f988231ae438e2fc98c94f870a9b266f93e1955.zip |
Merge branch 'bw/maint-1.7.9-solaris-getpass' into maint-1.7.11
* bw/maint-1.7.9-solaris-getpass:
Enable HAVE_DEV_TTY for Solaris
terminal: seek when switching between reading and writing
Diffstat (limited to 'compat')
-rw-r--r-- | compat/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/terminal.c b/compat/terminal.c index 6d16c8fba0..bbb038dd01 100644 --- a/compat/terminal.c +++ b/compat/terminal.c @@ -59,6 +59,7 @@ char *git_terminal_prompt(const char *prompt, int echo) r = strbuf_getline(&buf, fh, '\n'); if (!echo) { + fseek(fh, SEEK_CUR, 0); putc('\n', fh); fflush(fh); } |