diff --git a/src/grm/main.rs b/src/grm/main.rs
index 203d82c..b021a80 100644
--- a/src/grm/main.rs
+++ b/src/grm/main.rs
@@ -95,8 +95,8 @@ fn main() {
}
};
- let found_repos = match grm::find_in_tree(&path) {
- Ok(repos) => repos,
+ let (found_repos, warnings) = match grm::find_in_tree(&path) {
+ Ok((repos, warnings)) => (repos, warnings),
Err(error) => {
print_error(&error);
process::exit(1);
@@ -122,6 +122,9 @@ fn main() {
print!("{}", toml);
}
+ for warning in warnings {
+ print_warning(&warning);
+ }
}
},
cmd::SubCommand::Worktree(args) => {
diff --git a/src/lib.rs b/src/lib.rs
index 4b78967..36d7898 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -323,9 +323,10 @@ fn get_actual_git_directory(path: &Path, is_worktree: bool) -> PathBuf {
///
/// The bool in the return value specifies whether there is a repository
/// in root itself.
-fn find_repos(root: &Path) -> Result