summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-06-26 19:25:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-06-28 17:31:17 (GMT)
commitbce2c9ae9ff458b6090953ab9f639255f757a104 (patch)
tree0523fa50860d71654f4936b554497341f50395e8 /git.c
parent8f81449e885ab2b9bac09b5b835314d26f107b3f (diff)
downloadgit-bce2c9ae9ff458b6090953ab9f639255f757a104.zip
git-bce2c9ae9ff458b6090953ab9f639255f757a104.tar.gz
git-bce2c9ae9ff458b6090953ab9f639255f757a104.tar.bz2
tests: local config file should be honored from subdirs of toplevel
When git is passed the --paginate option, starting up a pager requires deciding what pager to start, which requires access to the core.pager configuration. If --paginate is handled before searching for the git dir, this configuration will be missed. In other words, with --paginate and only with --paginate, any repository-local core.pager setting is being ignored [*]. [*] unless the git directory is ./.git or GIT_DIR or GIT_CONFIG was set explicitly. Add a test to demonstrate this counterintuitive behavior. Noticed while reading over a patch by Duy that fixes it. Cc: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Improved-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
0 files changed, 0 insertions, 0 deletions