Skip to content

Commit 41cb114

Browse files
committed
Fix messages
1 parent 6e3d672 commit 41cb114

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

git_machete/client/traverse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,6 @@ def traverse(
499499
if final_worktree_path and initial_worktree_root != final_worktree_path:
500500
# Final branch is checked out in a worktree different from where we started
501501
warn(
502-
f"Note: branch {bold(final_branch)} is checked out in worktree at {bold(final_worktree_path)}.\n"
502+
f"branch {bold(final_branch)} is checked out in worktree at {bold(final_worktree_path)}\n"
503503
f"You may want to change directory with:\n"
504504
f" `cd {final_worktree_path}`")

tests/test_traverse.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,7 +2131,7 @@ def test_traverse_warns_when_final_branch_in_different_worktree(self) -> None:
21312131
output = launch_command("traverse", "-y")
21322132

21332133
# Verify the warning is emitted
2134-
assert "Note: branch branch-2 is checked out in worktree at" in output
2134+
assert "branch branch-2 is checked out in worktree at" in output
21352135
assert f"You may want to change directory with:\n cd {os.path.realpath(branch_2_worktree)}" in output
21362136

21372137
def test_traverse_no_warn_when_final_branch_in_same_worktree(self) -> None:
@@ -2200,5 +2200,5 @@ def test_traverse_warns_when_quitting_on_branch_in_different_worktree(self, mock
22002200

22012201
# Verify traverse stops early and the warning is still emitted
22022202
assert "Rebase branch-1 onto root?" in output
2203-
assert "Note: branch branch-1 is checked out in worktree at" in output
2203+
assert "branch branch-1 is checked out in worktree at" in output
22042204
assert f"You may want to change directory with:\n cd {os.path.realpath(branch_1_worktree)}" in output

0 commit comments

Comments
 (0)