File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
CodeEdit/Features/Git/Client Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments