未验证 提交 3e712fcd 编写于 作者: M Mislav Marohnić 提交者: GitHub

Merge pull request #1964 from jacobbednarz/fix-git-help-output

Restore pre-2.20.0 `git help` output
......@@ -357,7 +357,11 @@ func gitCmd(args ...string) *cmd.Cmd {
}
func IsBuiltInGitCommand(command string) bool {
helpCommandOutput, err := gitOutput("help", "-a")
helpCommandOutput, err := gitOutput("help", "--no-verbose", "-a")
if err != nil {
// support git versions that don't recognize --no-verbose
helpCommandOutput, err = gitOutput("help", "-a")
}
if err != nil {
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册