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 48f0a89 commit 4006939Copy full SHA for 4006939
asyncgit/src/sync/blame.rs
@@ -51,6 +51,10 @@ pub fn blame_file(
51
) -> Result<FileBlame> {
52
scope_time!("blame_file");
53
54
+ let file_path: &gix::bstr::BStr = file_path.into();
55
+ let file_path =
56
+ gix::path::to_unix_separators_on_windows(file_path);
57
+
58
let repo: gix::Repository =
59
gix::ThreadSafeRepository::discover_with_environment_overrides(repo_path.gitpath())
60
.map(Into::into)?;
@@ -79,7 +83,7 @@ pub fn blame_file(
79
83
tip,
80
84
cache,
81
85
&mut resource_cache,
82
- file_path.into(),
86
+ &file_path,
87
options,
88
)?;
89
@@ -148,7 +152,7 @@ pub fn blame_file(
148
152
149
153
let file_blame = FileBlame {
150
154
commit_id,
151
- path: file_path.into(),
155
+ path: file_path.to_string(),
156
lines,
157
};
158
0 commit comments