Include new line after existing fork error log (#7030)

This commit is contained in:
Hamish 'James' Coates 2023-02-28 00:53:25 +00:00 committed by GitHub
parent c9a2d85793
commit 394b23aa9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -209,7 +209,7 @@ func forkRun(opts *ForkOptions) error {
cs.Bold(ghrepo.FullName(forkedRepo)),
"already exists")
} else {
fmt.Fprintf(stderr, "%s already exists", ghrepo.FullName(forkedRepo))
fmt.Fprintf(stderr, "%s already exists\n", ghrepo.FullName(forkedRepo))
}
} else {
if connectedToTerminal {

View file

@ -407,7 +407,7 @@ func TestRepoFork(t *testing.T) {
},
},
httpStubs: forkPost,
wantErrOut: "someone/REPO already exists",
wantErrOut: "someone/REPO already exists\n",
},
{
name: "implicit nontty --remote",
@ -560,7 +560,7 @@ func TestRepoFork(t *testing.T) {
},
},
httpStubs: forkPost,
wantErrOut: "someone/REPO already exists",
wantErrOut: "someone/REPO already exists\n",
},
{
name: "repo arg nontty clone arg already exists",
@ -577,7 +577,7 @@ func TestRepoFork(t *testing.T) {
cs.Register(`git -C REPO remote add upstream https://github\.com/OWNER/REPO\.git`, 0, "")
cs.Register(`git -C REPO fetch upstream`, 0, "")
},
wantErrOut: "someone/REPO already exists",
wantErrOut: "someone/REPO already exists\n",
},
{
name: "repo arg nontty clone arg",