Skip to content
  • Duy Nguyen's avatar
    Stop starting pager recursively · 88e8f908
    Duy Nguyen authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    git-column can be used as a pager for other git commands, something
    like this:
    
        GIT_PAGER="git -p column --mode='dense color'" git -p branch
    
    The problem with this is that "git -p column" also has $GIT_PAGER set so
    the pager runs itself again as another pager. The end result is an
    infinite loop of forking. Other git commands have the same problem if
    being abused this way.
    
    Check if $GIT_PAGER is already set and stop launching another pager.
    
    Signed-off-by: default avatarNguyễn Thái Ngọc Duy <pclouds@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    88e8f908