public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
* git safe.directory
@ 2023-05-21 17:21 Mark Wielaard
  2023-05-22 16:13 ` Mark Wielaard
  0 siblings, 1 reply; 3+ messages in thread
From: Mark Wielaard @ 2023-05-21 17:21 UTC (permalink / raw)
  To: overseers; +Cc: Joel Brobecker

Hi,

Earlier this week git got upgraded on sourceware to include support
for safe.directory. Joel noticed an issue with the gdbadmin cron job
for the binutils-gdb.git repo. It would complain with:

fatal: detected dubious ownership in repository at
'/sourceware1/projects/src-home/binutils-gdb.git'

Given this repo is shared between different projects and users it is
"expected" that the git directory/config might be writable by someone
else in this case. We believe that doing the following for the
gdbadmin user is the appropriate workaround for now:

  git config --global --add safe.directory \
    /sourceware1/projects/src-home/binutils-gdb.git

I looked over other repos, cron jobs and hooks, but couldn't find any
other issue with this new "feature". The git operations executed on
them either don't use the config file or the operations are only
executed by the actual user "owning" the git repo config file.

But if you notice any 'detected dubious ownership' of any git
operations please report and/or check the dir/config file ownership
and/or add a 'safe.directory' workaround for the affected user.

Of course you can also move some operations to the separate
snapshots.sourceware.org server if it doesn't require access to the
repo directly.

Cheers,

Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-23  8:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-21 17:21 git safe.directory Mark Wielaard
2023-05-22 16:13 ` Mark Wielaard
2023-05-23  8:41   ` Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).