Page MenuHomePhabricator

fatal: detected dubious ownership in repository at '/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core'
Open, Needs TriagePublic

Description

Spotting this in my bot logs':

fatal: detected dubious ownership in repository at '/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core'

To add an exception for this directory, call:

git config --global --add safe.directory /mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core

Bot keeps working though.

See also: T325128 & T325253

Event Timeline

JJMC89 edited subscribers, added: JJMC89; removed: pywikibot-bugs-list.

This is a git security measure, not an issue with Pywikibot or Toolforge.

The message gives you the solution.

By the way, I do not quite understand why, even if the repository is owned by root, this error is raised. It has no sense to do not trust stuff owned by the root user, in my modest opinion.

So in my opinion there is still a corner case to perhaps discuss in upstream git.

Mentioned in SAL (#wikimedia-cloud) [2024-03-10T13:52:54Z] <wmbot~valeriobozzolan@tools-sgebastion-10> Flag the git repo /data/project/pywikibot/public_html/core_stable as safe ([[phabricator:T326469]])