git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Misleading error message on a failed `git mv`
@ 2023-01-11  4:19 Arthur Milchior
  2023-01-11 19:07 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Arthur Milchior @ 2023-01-11  4:19 UTC (permalink / raw)
  To: git

Thanks for git, and happy new year.
Here is what I believe to be a bug in an error message

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)

git init

touch file

git add file

git mv file folder/file


What did you expect to happen? (Expected behavior)

Either creating folder, or stating that folder does not exists


What happened instead? (Actual behavior)

Error message is

fatal: renaming 'file' failed: No such file or directory


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

The error message seems to indicate that file does not exists. It
actually exists. The destination directory does not exists and is the
one that should be mentionned.


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.39.0.314.g84b9a713c41-goog

cpu: x86_64

no commit associated with this build

sizeof-long: 8

sizeof-size_t: 8

shell-path: /bin/sh

feature: fsmonitor--daemon

uname: Darwin 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51
PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 x86_64

compiler info: clang: 13.1.6 (clang-1316.0.21.2.5)

libc info: no libc information available

$SHELL (typically, interactive shell): /bin/bash



[Enabled Hooks]

Regards,
Arthur

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

end of thread, other threads:[~2023-01-11 23:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11  4:19 Misleading error message on a failed `git mv` Arthur Milchior
2023-01-11 19:07 ` Jeff King
2023-01-11 21:43   ` Torsten Bögershausen
2023-01-11 23:25     ` Andreas Schwab

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).