mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #2936 from BenSturmfels/no-pager
Use `git --no-pager` rather than override all environment variables
This commit is contained in:
commit
d1a874e580
1 changed files with 1 additions and 2 deletions
|
|
@ -56,9 +56,8 @@ class TestPelican(LoggedTestCase):
|
||||||
|
|
||||||
def assertDirsEqual(self, left_path, right_path):
|
def assertDirsEqual(self, left_path, right_path):
|
||||||
out, err = subprocess.Popen(
|
out, err = subprocess.Popen(
|
||||||
['git', 'diff', '--no-ext-diff', '--exit-code',
|
['git', '--no-pager', 'diff', '--no-ext-diff', '--exit-code',
|
||||||
'-w', left_path, right_path],
|
'-w', left_path, right_path],
|
||||||
env={'PAGER': ''},
|
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE
|
stderr=subprocess.PIPE
|
||||||
).communicate()
|
).communicate()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue