Include new line after existing fork error log (#7030)
This commit is contained in:
parent
c9a2d85793
commit
394b23aa9b
2 changed files with 4 additions and 4 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue