Revision 64778d24a93ad455e5883120aef350ede20061c4 authored by Jonathan Nieder on 14 February 2010, 11:59:59 UTC, committed by Junio C Hamano on 15 February 2010, 02:23:17 UTC
Scripted commands that want to use git’s configured pager know better than ‘git var’ does whether stdout is going to be a tty at the appropriate time. Checking isatty(1) as git_pager() does now won’t cut it, since the output of git var itself is almost never a terminal. The symptom is that when used by humans, ‘git var GIT_PAGER’ behaves as it should, but when used by scripts, it always returns ‘cat’! So avoid tricks with isatty() and just always print the configured pager. This does not fix the callers to check isatty(1) themselves yet. Nevertheless, this patch alone is enough to fix 'am --interactive'. Thanks to Sebastian Celis for the report and Jeff King for the analysis. Reported-by: Sebastian Celis <sebastian@sebastiancelis.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 9fabb6d
File | Mode | Size |
---|---|---|
lib | ||
macosx | ||
po | ||
windows | ||
.gitattributes | -rw-r--r-- | 84 bytes |
.gitignore | -rw-r--r-- | 97 bytes |
GIT-VERSION-GEN | -rwxr-xr-x | 1.8 KB |
Makefile | -rw-r--r-- | 11.4 KB |
git-gui--askpass | -rwxr-xr-x | 1.3 KB |
git-gui.sh | -rwxr-xr-x | 90.7 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...