summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pager.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pager.c b/pager.c
index ae79643363..ec85fdf4c6 100644
--- a/pager.c
+++ b/pager.c
@@ -166,9 +166,7 @@ void setup_pager(void)
int pager_in_use(void)
{
- const char *env;
- env = getenv("GIT_PAGER_IN_USE");
- return env ? git_config_bool("GIT_PAGER_IN_USE", env) : 0;
+ return git_env_bool("GIT_PAGER_IN_USE", 0);
}
/*