Skip to content

Commit 0783f70

Browse files
Fix rendering of git commits with bodies in the History Inspector (#1742)
1 parent e17584e commit 0783f70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodeEdit/Features/Git/Client/GitClient+CommitHistory.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ extension GitClient {
3131
dateFormatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss Z"
3232

3333
let output = try await run(
34-
"log --pretty=%h¦%H¦%s¦%aN¦%ae¦%cn¦%ce¦%aD¦%b¦%D¦ \(maxCountString) \(branchNameString) \(fileLocalPath)"
34+
"log -z --pretty=%h¦%H¦%s¦%aN¦%ae¦%cn¦%ce¦%aD¦%b¦%D¦ \(maxCountString) \(branchNameString) \(fileLocalPath)"
3535
.trimmingCharacters(in: .whitespacesAndNewlines)
3636
)
3737
let remote = try await run("ls-remote --get-url")
3838
let remoteURL = URL(string: remote.trimmingCharacters(in: .whitespacesAndNewlines))
3939

4040
return output
41-
.split(separator: "\n")
41+
.split(separator: "\0")
4242
.map { line -> GitCommit in
4343
let parameters = String(line).components(separatedBy: "¦")
4444
let infoRef = parameters[safe: 9]

0 commit comments

Comments
 (0)