Skip to content

Commit

Permalink
feat: canonicalize before trace (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
oddgrd authored Dec 13, 2022
1 parent 8387138 commit 18767f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cargo-shuttle/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,12 +641,13 @@ impl Shuttle {
if let Ok(repo) = Repository::discover(working_directory) {
let repo_path = repo
.workdir()
.context("getting working directory of repository")?;
.context("getting working directory of repository")?
.canonicalize()?;

trace!(?repo_path, "found git repository");

let repo_rel_path = working_directory
.strip_prefix(repo_path)
.strip_prefix(repo_path.as_path())
.context("stripping repository path from working directory")?;

trace!(
Expand Down

0 comments on commit 18767f0

Please sign in to comment.