File tree 1 file changed +2
-2
lines changed
CodeEdit/Features/Git/Client 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ extension GitClient {
31
31
dateFormatter. dateFormat = " EEE, dd MMM yyyy HH:mm:ss Z "
32
32
33
33
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) "
35
35
. trimmingCharacters ( in: . whitespacesAndNewlines)
36
36
)
37
37
let remote = try await run ( " ls-remote --get-url " )
38
38
let remoteURL = URL ( string: remote. trimmingCharacters ( in: . whitespacesAndNewlines) )
39
39
40
40
return output
41
- . split ( separator: " \n " )
41
+ . split ( separator: " \0 " )
42
42
. map { line -> GitCommit in
43
43
let parameters = String ( line) . components ( separatedBy: " ¦ " )
44
44
let infoRef = parameters [ safe: 9 ]
You can’t perform that action at this time.
0 commit comments