Skip to content

Commit

Permalink
fix: Warn about hidden worktrees as well as separate repos
Browse files Browse the repository at this point in the history
This slightly expands the wording of the warning suggesting to use
`--skip-hidden-repositories`, so that it notes that worktrees and
not just separate repositories are at stake.
  • Loading branch information
EliahKagan committed Jul 26, 2024
1 parent 1a97922 commit 7a4d239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitoxide-core/src/repository/clean.rs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ pub(crate) mod function {
wrote_nl = true;
writeln!(
err,
"WARNING: would remove repositories hidden inside ignored directories - use --skip-hidden-repositories to skip{}",
"WARNING: would remove repositories and worktrees hidden inside ignored directories - use --skip-hidden-repositories to skip{}",
wrap_in_parens(msg.take().unwrap_or_default())
)?;
}
Expand Down

0 comments on commit 7a4d239

Please sign in to comment.