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

Commit86c0327

Browse files
committed
Use errBuf in ssh -G
1 parent95b494b commit86c0327

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎cli/gitssh.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ func praseIdentityFilesForHost(ctx context.Context, args, env []string) (identit
154154
// to using the default identity files.
155155
r=strings.NewReader(fallbackIdentityFiles)
156156
}
157+
iferrBuf.Len()>0 {
158+
returnnil,xerrors.Errorf("ssh -G encountered an error: %s",errBuf.String())
159+
}
157160

158161
s:=bufio.NewScanner(r)
159162
fors.Scan() {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp