diff --git a/pkg/commands/git_commands/commit.go b/pkg/commands/git_commands/commit.go index 45582c6bd..52a65fb6d 100644 --- a/pkg/commands/git_commands/commit.go +++ b/pkg/commands/git_commands/commit.go @@ -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() diff --git a/pkg/integration/tests/commit/copy_author_to_clipboard.go b/pkg/integration/tests/commit/copy_author_to_clipboard.go index 6b9319f36..9e182265f 100644 --- a/pkg/integration/tests/commit/copy_author_to_clipboard.go +++ b/pkg/integration/tests/commit/copy_author_to_clipboard.go @@ -43,9 +43,6 @@ var CopyAuthorToClipboard = NewIntegrationTest(NewIntegrationTestArgs{ Contains("clipboard").IsSelected(), ) - /* EXPECTED: t.Views().Main().Content(Contains("/John Doe /")) - ACTUAL: */ - t.Views().Main().Content(Contains("/'John Doe /")) }, })