Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefbd97e

Browse files
committed
Use io.Discard for stderr when running ssh -G
1 parentcc92ef0 commitefbd97e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎cli/gitssh.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ func praseIdentityFilesForHost(ctx context.Context, args, env []string) (identit
147147
cmd:=exec.CommandContext(ctx,"ssh",args...)
148148
cmd.Env=append(cmd.Env,env...)
149149
cmd.Stdout=&outBuf
150+
cmd.Stderr=io.Discard
150151
err=cmd.Run()
151152
iferr!=nil {
152153
// If ssh -G failed, the SSH version is likely too old, fallback

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp