Skip to content

Commit

Permalink
fixup! fix(codspeed): fix handling of symbolic links in get_git_relat…
Browse files Browse the repository at this point in the history
…ive_path
  • Loading branch information
adriencaccia committed Feb 26, 2024
1 parent fe8a165 commit c2db3e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/codspeed/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ where
P: AsRef<Path>,
{
if let Ok(canonicalized_abs_path) = abs_path.as_ref().canonicalize() {
// `repo_path` is still canonicalized as it is a subpath of `canonicalized_abs_path`
if let Ok(repo_path) = get_parent_git_repo_path(&canonicalized_abs_path) {
canonicalized_abs_path
.strip_prefix(repo_path)
Expand Down

0 comments on commit c2db3e7

Please sign in to comment.