Add no-pager option to git branch#2637
Conversation
|
Can you elaborate on the problem you’re seeing? Adding this argument seems fine, but hundreds of thousands of people, including me, have used the install script and not had to press a key to complete it. |
|
While running the installation script, the following screen displayed and I must press # Install nvm
curl -o- 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh' | bash
# Displayed during installation.
* (HEAD detached at FETCH_HEAD)
master
(END)The following is information about installation environment echo $SHELL
/bin/zsh
$SHELL --version
zsh 5.8 (x86_64-pc-linux-gnu)
git --version
git version 2.33.1Thank you |
|
What else is in that script before the curl? How do you run the script? Do you have any git config related to a pager? |
|
Run as follow chmod +x ./test.sh
./test.sh
#!/bin/sh
echo asdf
curl -o- 'https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh' | bashYou can see my other script in: https://github.com/nix6839/dotfiles/blob/master/resource/run_once_script/install/node.sh (See Thank you |
|
That all seems simple enough. What about your git config? |
[user]
user.name = b
user.email = b
user.signingkey = b
[commit]
gpgsign = true
[pull]
rebase = falseHowever, if I run Thank you |
|
One more question :-) what's |
ljharb
left a comment
There was a problem hiding this comment.
There's a few other git branch commands; they should presumably all have it?
Does git v1.7.10 have --no-pager?
|
The other git v1.7.10 has Thank you |
|
Let's update the PR to add |
|
Okay everything is done. |
|
Thank you for your hard work. |
To use
install.shin an automated script when there is nono-pageroption, the user must press q directly. It's so terrible.