fix: remove panics and unblock flows
This commit is contained in:
@@ -38,10 +38,15 @@ pub fn find_git_repos(root: &Path) -> Vec<LocalRepo> {
|
||||
let Some(kind) = entry.file_type() else {
|
||||
return true;
|
||||
};
|
||||
|
||||
if !kind.is_dir() {
|
||||
return true;
|
||||
}
|
||||
|
||||
if entry.file_name() == std::ffi::OsStr::new(".git") {
|
||||
return false;
|
||||
}
|
||||
|
||||
let dir = entry.path();
|
||||
let Ok(repo) = gix::discover(dir) else {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user