提交 85d72839 编写于 作者: S Stephen Celis 提交者: Chris Wanstrath

Explicitly split string value for Ruby 1.9.

上级 59002f10
......@@ -283,8 +283,9 @@ help
# Wait until we have input before we start the pager
Kernel.select [STDIN]
pager = ENV['GIT_PAGER'] || `git config --get-all core.pager`.first ||
ENV['PAGER'] || 'less -isr'
pager = ENV['GIT_PAGER'] ||
`git config --get-all core.pager`.split.first || ENV['PAGER'] ||
'less -isr'
exec pager rescue exec "/bin/sh", "-c", pager
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册