Misleading error message on a failed `git mv`

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux