Skip to content

Commit e31de68

Browse files
committed
Remove check
Since a4801fe, this check is done by `gix_validate::path::component` which is called when a `RelativePath` is created.
1 parent 21e9337 commit e31de68

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

gix-ref/src/store/file/overlay_iter.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -302,13 +302,6 @@ impl<'a> IterInfo<'a> {
302302
"prefix must be a relative path, like 'refs/heads/'",
303303
));
304304
}
305-
use std::path::Component::*;
306-
if prefix_path.components().any(|c| matches!(c, CurDir | ParentDir)) {
307-
return Err(std::io::Error::new(
308-
std::io::ErrorKind::InvalidInput,
309-
"Refusing to handle prefixes with relative path components",
310-
));
311-
}
312305
let iter_root = base.join(&prefix_path);
313306
if prefix.ends_with(b"/") {
314307
Ok(IterInfo::BaseAndIterRoot {

0 commit comments

Comments
 (0)