bug: Commit throws fatal ownership error without explanation

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

 




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)

       Attempted to commit a change.

What did you expect to happen? (Expected behavior)

       Commit should have been applied.

What happened instead? (Actual behavior)

       Git threw a fatal error with the following malformed message, which fails to identify the file(s) with problematic ownership.

"[master 3e58b1d] Updated sans comment
1 file changed, 3 insertions(+)
fatal: detected dubious ownership in repository at '/srv/git/projects.git'
To add an exception for this directory, call:

       git config --global --add safe.directory /srv/git/projects.git
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.  "


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

       If git throws a fatal error due to improper file ownership, it must report the offending file(s) so the user can correct the issue.  It is never acceptable to die and leave behind a mystery as to the cause.

       At an absolute minimum, the error message must report the expected ownership that was not found, not the vague and useless characterization of "dubious ownership".  "Dubious ownership" might be fine for a warning, but is unacceptable for a fatal error.  In other words, this error message should be as follows:

"fatal: The following files have incorrect ownership.

    file /srv/git/projects.git/example/path/to/file/one.pl is owned by user123541, should be user434892

    ... [ repeat as necessary ]

"




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.43.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64
compiler info: gnuc: 13.2
libc info: glibc: 2.39
$SHELL (typically, interactive shell): /bin/bash


[Enabled Hooks]
not run from a git repository - no hooks to show




--
David Hillman





[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