Skip to content

Commit 1abd761

Browse files
committed
fix progress
1 parent deb6073 commit 1abd761

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gitoxide-core/src/organize.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ fn find_git_repository_workdirs(root: impl AsRef<Path>, mut progress: impl Progr
3737
let walk = fs::sorted(fs::walkdir_new(root).follow_links(false));
3838
walk.into_iter()
3939
.filter_map(move |entry| {
40-
progress.step();
40+
progress.inc();
4141
match entry {
4242
Ok(entry) => Some(entry),
4343
Err(_err) => {
44-
// TODO: remove this line once we properly ignore git repository - they get moved
44+
// TODO: re-add this line once we properly ignore git repository - they get moved.
45+
// Otherwise this is a legitimate possibly rare error.
4546
// progress.fail(format!("Ignored: {}", _err.to_string()));
4647
None
4748
}

0 commit comments

Comments
 (0)