summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2023-12-10 08:37:40 -0500
committerDan Davison <dandavison7@gmail.com>2023-12-10 08:37:40 -0500
commit59b4a2ead4b621c5576ed66bdc2bf3f53f041489 (patch)
tree77a42eddb5e2ce4d538074d42d04b4814e81b4dd
parentb7fd05eba4fe3084dd2376d474584d707e93f4e3 (diff)
Fix absolute path in diffstat hyperlink when not in root dirfix-diffstat-relative-path
-rw-r--r--src/handlers/diff_stat.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlers/diff_stat.rs b/src/handlers/diff_stat.rs
index 4c8a8b63..f7ba0ce9 100644
--- a/src/handlers/diff_stat.rs
+++ b/src/handlers/diff_stat.rs
@@ -56,7 +56,7 @@ pub fn relativize_path_in_diff_stat_line(
let relative_path = relative_path.to_str()?;
let formatted_path = match (
config.hyperlinks,
- utils::path::absolute_path(path_relative_to_repo_root, config),
+ utils::path::absolute_path(relative_path, config),
) {
(true, Some(absolute_path)) => features::hyperlinks::format_osc8_file_hyperlink(
absolute_path,