We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a05f47 commit b97bc57Copy full SHA for b97bc57
asyncgit/src/sync/blame.rs
@@ -42,6 +42,10 @@ pub fn blame_file(
42
) -> Result<FileBlame> {
43
scope_time!("blame_file");
44
45
+ let file_path: &gix::bstr::BStr = file_path.into();
46
+ let file_path =
47
+ gix::path::to_unix_separators_on_windows(file_path);
48
+
49
let repo: gix::Repository =
50
gix::ThreadSafeRepository::discover_with_environment_overrides(repo_path.gitpath())
51
.map(Into::into)?;
@@ -64,7 +68,7 @@ pub fn blame_file(
64
68
tip,
65
69
cache,
66
70
&mut resource_cache,
67
- file_path.into(),
71
+ &file_path,
72
options,
73
)?;
74
@@ -132,7 +136,7 @@ pub fn blame_file(
132
136
133
137
let file_blame = FileBlame {
134
138
commit_id,
135
- path: file_path.into(),
139
+ path: file_path.to_string(),
140
lines,
141
};
142
0 commit comments