threads / discuss / 62283

Remote git server dubious ownership

Subject: Remote git server dubious ownership

## tl;dr

2 messages between Oct 8, 2024 and Oct 8, 2024.

replies: 1people: 2as markdown or json

Alessio De Marchi (GMail)· Oct 8, 2024, 15:14 UTC · lore
Hello

I'm using git v2.46.2 on windows, and I have a server linux (git v2.45.2) where me and other developer push our repositories.

If i push my changes on a repository that is owned by another user the server git respond:

fatal: detected dubious ownership in repository...
So I can push changes only in repository owned by myself.

It is possible to share a repository to more that one user? (I remember that it was possible untill some years ago)

thanks
Alessio De Marchi
Michal Suchánek· Oct 8, 2024, 18:27 UTC · re: Alessio De Marchi (GMail) · lore

Re: Remote git server dubious ownership

Hello,
On Tue, Oct 08, 2024 at 05:14:49PM +0200, Alessio De Marchi (GMail) wrote:
Show 15 quoted lines
> Hello
> 
> I'm using git v2.46.2 on windows, and I have a server linux (git v2.45.2)
> where me and other developer push our repositories.
> 
> If i push my changes on a repository that is owned by another user the
> server git respond:
> 
> fatal: detected dubious ownership in repository...
> 
> 
> So I can push changes only in repository owned by myself.
> 
> It is possible to share a repository to more that one user? (I remember that
> it was possible untill some years ago)

look for the git safe.directory option. That makes it possible to specify which repositories are shared.

HTH
Michal

← back to recent threads