Go to file
Shawn O. Pearce 8f82a4f828 Don't start the pager if stdout is a pipe
The repo script often uses a pager by default and will produce
control characters (coloring) to standard output when using the
pager, even if the output is redirected to another pipe or script.
This is because the pager setup checked for the terminal presence
on FD 0, and in case of redirection FD 0 is still attached to
the terminal.

Instead require that both FD 0 and FD 1 are connected to the terminal
in order to start the pager.

Bug: REPO-19, b.android.com/2004
Signed-off-by: Shawn O. Pearce <sop@google.com>
2009-04-01 07:24:22 -07:00
docs Add a 'repo manifest' command whose help is the manifest file format 2009-03-04 14:26:50 -08:00
hooks Install a default pre-auto-gc hook in all repositories 2008-11-03 11:00:44 -08:00
subcmds Don't bother listing branch URLs during upload 2009-03-19 10:20:27 -07:00
.gitignore Initial Contribution 2008-10-21 07:00:00 -07:00
color.py Fix color parsing to not crash when user defined colors are set 2009-02-02 16:17:02 -08:00
command.py Don't permit users to run repo status in a mirror client 2009-03-03 17:47:06 -08:00
COPYING Initial Contribution 2008-10-21 07:00:00 -07:00
editor.py Make repo's editor work when the editor is a commandline with 2008-11-14 21:12:44 -05:00
error.py Report better errors when a project revision is invalid 2009-03-02 12:56:08 -08:00
git_command.py Initial Contribution 2008-10-21 07:00:00 -07:00
git_config.py Only lookup review server '/ssh_info' once per repo process 2009-03-25 14:06:43 -07:00
main.py Add global --trace command line option 2009-03-09 18:26:31 -07:00
manifest.py Add repo manifest -o to save a manifest 2009-03-05 10:32:38 -08:00
pager.py Don't start the pager if stdout is a pipe 2009-04-01 07:24:22 -07:00
project.py Add repo manifest -o to save a manifest 2009-03-05 10:32:38 -08:00
remote.py Add <remote project-name="..."> attribute within projects 2008-11-06 11:23:06 -08:00
repo Correct the REPO_URL in the wrapper script to android.git.kernel.org 2008-12-18 07:21:32 -08:00