git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
LRLou Rech <lrech@hardcat.com>
Date
May 30, 2024, 02:39 UTC
Message-ID
<ME3PR01MB7142AD152E97A36EFFB5A8AFACF32@ME3PR01MB7142.ausprd01.prod.outlook.com>
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.
Message 1 of 1 in “Git update 1:2.34.1-1ubuntu1.11 for Ubuntu Server 22.04 breaks access to shared repositories”
  1. Lou RechMay 30, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.