changeset 47949 | 696abab107b4 |
parent 47780 | cf5f8da2244c |
child 47952 | 9cd35c8c6044 |
--- a/rust/hg-core/src/repo.rs Mon Aug 30 21:18:29 2021 +0200 +++ b/rust/hg-core/src/repo.rs Fri Sep 03 16:37:20 2021 +0200 @@ -127,7 +127,8 @@ } else { let bytes = hg_vfs.read("sharedpath")?; let mut shared_path = - get_path_from_bytes(bytes.trim_end_newlines()).to_owned(); + get_path_from_bytes(bytes.trim_end_matches(|b| b == b'\n')) + .to_owned(); if relative { shared_path = dot_hg.join(shared_path) }