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 a0a9804 commit f3cf972Copy full SHA for f3cf972
src/commands/blame.rs
@@ -5,6 +5,8 @@ use crate::error::GitAiError;
5
use crate::git::refs::get_reference_as_authorship_log_v3;
6
use crate::git::repository::Repository;
7
use crate::git::repository::exec_git;
8
+#[cfg(windows)]
9
+use crate::utils::normalize_to_posix;
10
use chrono::{DateTime, FixedOffset, TimeZone, Utc};
11
use std::collections::HashMap;
12
use std::fs;
@@ -194,6 +196,12 @@ impl Repository {
194
196
file_path.to_string()
195
197
};
198
199
+ #[cfg(windows)]
200
+ let relative_file_path = normalize_to_posix(&relative_file_path);
201
+
202
+ #[cfg(not(windows))]
203
+ let relative_file_path = relative_file_path;
204
205
let abs_file_path = repo_root.join(&relative_file_path);
206
207
// Validate that the file exists
0 commit comments