mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 22:07:00 +05:30
Correctly strip prefix from paths
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
767da20d35
commit
3d6bb33b74
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ fn freeze_repos(dir: &str) -> anyhow::Result<()> {
|
|||
) {
|
||||
let path = entry
|
||||
.path()
|
||||
.to_string_lossy()
|
||||
.strip_prefix(&dir)
|
||||
.strip_prefix(Path::new(dir))?
|
||||
.to_str()
|
||||
.unwrap()
|
||||
.to_string();
|
||||
repos.insert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue