Git update 1:2.34.1-1ubuntu1.11 for Ubuntu Server 22.04 breaks access to shared repositories

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

 



Hi,

As of this latest update to Git on our in-house repository server we can't perform any git commands to our repositories. All commands report "detected dubious ownership in repository".

These shared repositories have been in place for years and now can't be accessed.

We even created a new shared repository owned by our Support person 'awilson' to test this behaviour. Only the owner of the repository can perform any commands on the repository.

Case 1 - Clone new repository owned by 'awilson':

Git repository created by 'awilson' with the following commands:
mkdir awlr.git
cd awlr.git
git init --bare --shared
chgrp -R 'Git Users' .
chmod -R g+rwX .
find . -type d -exec chmod g+s '{}' +
cd ../

Git clone attempted by user 'lrech':
git clone ssh://reposerver/usr/gitroot/awlr.git
Cloning into 'awlr'...
fatal: detected dubious ownership in repository at '/usr/gitroot/awlr.git'
To add an exception for this directory, call:

        git config --global --add safe.directory /usr/gitroot/awlr.git
fatal: Could not read from remote repository.

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

Conversely, all other repositories were created by me, 'lrech', in the same manner as outlined above and can no longer be accessed by anyone expect me.

Case 2 - Perform git fetch on existing repository owned by 'lrech', fetch performed by 'awilson'.

C:\work\Tiger> git fetch
fatal: detected dubious ownership in repository at '/usr/gitroot/Tiger.git'
To add an exception for this directory, call:

        git config --global --add safe.directory /usr/gitroot/Tiger.git
fatal: Could not read from remote repository.

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

Please let me know if there are any further details you require for this issue.

Regards

Lou Rech.






[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