summaryrefslogtreecommitdiffstats
path: root/src/modules
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2021-02-14 18:15:47 +0100
committerGitHub <noreply@github.com>2021-02-14 18:15:47 +0100
commitd14736dbfe9da1ef64c38d4184247d0a72dd9074 (patch)
treeb361229b6dd39cdd8d508b03cd2816bc19d3ea40 /src/modules
parent19461a06940bd36d333733ca56d9b47acef2d32e (diff)
fix(directory): contract git repo with display path (#2304)
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/directory.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/directory.rs b/src/modules/directory.rs
index 67cc09965..9b154a824 100644
--- a/src/modules/directory.rs
+++ b/src/modules/directory.rs
@@ -58,10 +58,7 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
let dir_string = repo
.and_then(|r| r.root.as_ref())
.filter(|root| *root != &home_dir)
- // NOTE: Always attempt to contract repo paths from the physical dir as
- // the logical dir _may_ not be be a valid physical disk
- // path and may be impossible to contract.
- .and_then(|root| contract_repo_path(&physical_dir, root));
+ .and_then(|root| contract_repo_path(&display_dir, root));
// Otherwise use the logical path, automatically contracting
// the home directory if required.