Merge pull request #10 from msfjarvis/path-fixup

Correctly strip prefix from paths
This commit is contained in:
Harsh Shandilya 2020-10-30 12:51:52 +05:30 committed by GitHub
commit c59d5a82b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,8 +89,8 @@ fn freeze_repos(dir: &str) -> anyhow::Result<()> {
) { ) {
let path = entry let path = entry
.path() .path()
.to_string_lossy() .strip_prefix(Path::new(dir))?
.strip_prefix(&dir) .to_str()
.unwrap() .unwrap()
.to_string(); .to_string();
repos.insert( repos.insert(