{"thread":{"id":"62283","subject":"Remote git server dubious ownership","startedAt":"2024-10-08T15:14:53Z","lastAt":"2024-10-08T18:27:25Z","messageCount":2,"participants":["Alessio De Marchi (GMail)","Michal Suchánek"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"504450","messageId":"447ddc34-ab3a-4607-908f-64b9cc0268fd@gmail.com","threadId":"62283","inReplyTo":null,"subject":"Remote git server dubious ownership","fromName":"Alessio De Marchi (GMail)","fromEmail":"alessio.demarchi@gmail.com","sentAt":"2024-10-08T15:14:49Z","receivedAt":"2024-10-08T15:14:53Z","isPatch":false,"sender":{"key":"alessio.demarchi@gmail.com","avatar":null},"body":"Hello\n\nI'm using git v2.46.2 on windows, and I have a server linux (git \nv2.45.2) where me and other developer push our repositories.\n\nIf i push my changes on a repository that is owned by another user the \nserver git respond:\n\nfatal: detected dubious ownership in repository...\n\n\nSo I can push changes only in repository owned by myself.\n\nIt is possible to share a repository to more that one user? (I remember \nthat it was possible untill some years ago)\n\n\nthanks\n\nAlessio De Marchi\n\n\n"},{"id":"504467","messageId":"ZwV5iiX7ssf4yk53@kitsune.suse.cz","threadId":"62283","inReplyTo":"447ddc34-ab3a-4607-908f-64b9cc0268fd@gmail.com","subject":"Re: Remote git server dubious ownership","fromName":"Michal Suchánek","fromEmail":"msuchanek@suse.de","sentAt":"2024-10-08T18:27:22Z","receivedAt":"2024-10-08T18:27:25Z","isPatch":false,"sender":{"key":"msuchanek@suse.de","avatar":"https://avatars.githubusercontent.com/u/787652?v=4"},"body":"Hello,\n\nOn Tue, Oct 08, 2024 at 05:14:49PM +0200, Alessio De Marchi (GMail) wrote:\n> Hello\n> \n> I'm using git v2.46.2 on windows, and I have a server linux (git v2.45.2)\n> where me and other developer push our repositories.\n> \n> If i push my changes on a repository that is owned by another user the\n> server git respond:\n> \n> fatal: detected dubious ownership in repository...\n> \n> \n> So I can push changes only in repository owned by myself.\n> \n> It is possible to share a repository to more that one user? (I remember that\n> it was possible untill some years ago)\n\nlook for the git safe.directory option. That makes it possible to\nspecify which repositories are shared.\n\nHTH\n\nMichal\n"}]}