Skip to content

Commit 7a4d239

Browse files
committed
fix: Warn about hidden worktrees as well as separate repos
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.
1 parent 1a97922 commit 7a4d239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitoxide-core/src/repository/clean.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ pub(crate) mod function {
325325
wrote_nl = true;
326326
writeln!(
327327
err,
328-
"WARNING: would remove repositories hidden inside ignored directories - use --skip-hidden-repositories to skip{}",
328+
"WARNING: would remove repositories and worktrees hidden inside ignored directories - use --skip-hidden-repositories to skip{}",
329329
wrap_in_parens(msg.take().unwrap_or_default())
330330
)?;
331331
}

0 commit comments

Comments
 (0)