git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* misleading message printed when worktree add fails
@ 2021-11-28  6:50 Baruch Burstein
  2021-11-28 12:37 ` Eric Sunshine
  0 siblings, 1 reply; 6+ messages in thread
From: Baruch Burstein @ 2021-11-28  6:50 UTC (permalink / raw)
  To: git

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)

run `git worktree add <path> <branch>`, where <branch> is an already
checked-out branch

What did you expect to happen? (Expected behavior)

fail to create worktree

What happened instead? (Actual behavior)

worktree was not created, but a confusing message was printed:
"Preparing worktree (checking out '<branch>')"

What's different between what you expected and what actually happened?

The printed message seems to indicate that the command was a success,
when in fact
it was not

Anything else you want to add:

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.33.1.windows.1
cpu: x86_64
built from commit: 05d80adb775077d673fab685009ede4a1003ed92
sizeof-long: 4
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Windows 10.0 18363
compiler info: gnuc: 10.3
libc info: no libc information available
$SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-11-30  4:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-28  6:50 misleading message printed when worktree add fails Baruch Burstein
2021-11-28 12:37 ` Eric Sunshine
2021-11-28 16:47   ` Baruch Burstein
2021-11-28 17:00     ` Eric Sunshine
2021-11-28 17:11       ` rsbecker
2021-11-30  4:46       ` Eric Sunshine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).