1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

Fix copying commit author to clipboard

This was a regression introduced with the GitCommandBuilder in 25f8b0337.
This commit is contained in:
Stefan Haller
2024-09-23 09:42:16 +02:00
parent 9b2a0c4538
commit 3d56357294
2 changed files with 1 additions and 4 deletions

View File

@ -189,7 +189,7 @@ type Author struct {
func (self *CommitCommands) GetCommitAuthor(commitHash string) (Author, error) {
cmdArgs := NewGitCmd("show").
Arg("--no-patch", "--pretty=format:'%an%x00%ae'", commitHash).
Arg("--no-patch", "--pretty=format:%an%x00%ae", commitHash).
ToArgv()
output, err := self.cmd.New(cmdArgs).DontLog().RunWithOutput()

View File

@ -43,9 +43,6 @@ var CopyAuthorToClipboard = NewIntegrationTest(NewIntegrationTestArgs{
Contains("clipboard").IsSelected(),
)
/* EXPECTED:
t.Views().Main().Content(Contains("/John Doe <john@doe.com>/"))
ACTUAL: */
t.Views().Main().Content(Contains("/'John Doe <john@doe.com'>/"))
},
})