Skip to content

Commit 88e4581

Browse files
2KAbhishekstefanhaller
authored andcommitted
Add an extra blank line when adding "Co-authored-by"
1 parent 88d5a82 commit 88e4581

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/commands/git_commands/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func (self *CommitCommands) AddCoAuthor(sha string, value string) error {
4545
return err
4646
}
4747

48-
message = message + fmt.Sprintf("\nCo-authored-by: %s", value)
48+
message = message + fmt.Sprintf("\n\nCo-authored-by: %s", value)
4949

5050
cmdArgs := NewGitCmd("commit").
5151
Arg("--allow-empty", "--amend", "--only", "-m", message).

pkg/integration/tests/commit/add_co_author.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ var AddCoAuthor = NewIntegrationTest(NewIntegrationTestArgs{
3333
})
3434

3535
t.Views().Main().ContainsLines(
36-
Contains("initial commit"),
3736
Contains("Co-authored-by: John Smith <[email protected]>"),
3837
)
3938
},

0 commit comments

Comments
 (0)