mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 20:36:03 +02:00
Fix copying commit author to clipboard
This was a regression introduced with the GitCommandBuilder in 25f8b0337
.
This commit is contained in:
parent
9b2a0c4538
commit
3d56357294
2 changed files with 1 additions and 4 deletions
|
@ -189,7 +189,7 @@ type Author struct {
|
||||||
|
|
||||||
func (self *CommitCommands) GetCommitAuthor(commitHash string) (Author, error) {
|
func (self *CommitCommands) GetCommitAuthor(commitHash string) (Author, error) {
|
||||||
cmdArgs := NewGitCmd("show").
|
cmdArgs := NewGitCmd("show").
|
||||||
Arg("--no-patch", "--pretty=format:'%an%x00%ae'", commitHash).
|
Arg("--no-patch", "--pretty=format:%an%x00%ae", commitHash).
|
||||||
ToArgv()
|
ToArgv()
|
||||||
|
|
||||||
output, err := self.cmd.New(cmdArgs).DontLog().RunWithOutput()
|
output, err := self.cmd.New(cmdArgs).DontLog().RunWithOutput()
|
||||||
|
|
|
@ -43,9 +43,6 @@ var CopyAuthorToClipboard = NewIntegrationTest(NewIntegrationTestArgs{
|
||||||
Contains("clipboard").IsSelected(),
|
Contains("clipboard").IsSelected(),
|
||||||
)
|
)
|
||||||
|
|
||||||
/* EXPECTED:
|
|
||||||
t.Views().Main().Content(Contains("/John Doe <john@doe.com>/"))
|
t.Views().Main().Content(Contains("/John Doe <john@doe.com>/"))
|
||||||
ACTUAL: */
|
|
||||||
t.Views().Main().Content(Contains("/'John Doe <john@doe.com'>/"))
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue