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:
@ -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()
|
||||
|
@ -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'>/"))
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user