Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Improve experience with local SSH keys #3835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 12, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use errBuf in ssh -G
  • Loading branch information
mafredri committed Sep 5, 2022
commit a41749e7758061aff18f302a8587f9d9c349f450
3 changes: 3 additions & 0 deletions cli/gitssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ func praseIdentityFilesForHost(ctx context.Context, args, env []string) (identit
// to using the default identity files.
r = strings.NewReader(fallbackIdentityFiles)
}
if errBuf.Len() > 0 {
return nil, xerrors.Errorf("ssh -G encountered an error: %s", errBuf.String())
}

s := bufio.NewScanner(r)
for s.Scan() {
Expand Down