Skip to content

Commit 3d56357

Browse files
committed
Fix copying commit author to clipboard
This was a regression introduced with the GitCommandBuilder in 25f8b03.
1 parent 9b2a0c4 commit 3d56357

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pkg/commands/git_commands/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ type Author struct {
189189

190190
func (self *CommitCommands) GetCommitAuthor(commitHash string) (Author, error) {
191191
cmdArgs := NewGitCmd("show").
192-
Arg("--no-patch", "--pretty=format:'%an%x00%ae'", commitHash).
192+
Arg("--no-patch", "--pretty=format:%an%x00%ae", commitHash).
193193
ToArgv()
194194

195195
output, err := self.cmd.New(cmdArgs).DontLog().RunWithOutput()

pkg/integration/tests/commit/copy_author_to_clipboard.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ var CopyAuthorToClipboard = NewIntegrationTest(NewIntegrationTestArgs{
4343
Contains("clipboard").IsSelected(),
4444
)
4545

46-
/* EXPECTED:
4746
t.Views().Main().Content(Contains("/John Doe <[email protected]>/"))
48-
ACTUAL: */
49-
t.Views().Main().Content(Contains("/'John Doe <[email protected]'>/"))
5047
},
5148
})

0 commit comments

Comments
 (0)