mirror of
https://github.com/msfjarvis/gitice
synced 2025-08-14 10:37:01 +05:30
Merge pull request #10 from msfjarvis/path-fixup
Correctly strip prefix from paths
This commit is contained in:
commit
c59d5a82b0
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