Skip to content

fatal: detected dubious ownership in repository on Windows #1275

@dliu04

Description

@dliu04

Describe the bug
Attempting to open a git-managed project into an Explorer card results in the following error:

fatal: detected dubious ownership in repository at 'C:/Windows/System32/simple-project'
'C:/Windows/System32/simple-project' is owned by:
	'S-1-5-32-544'
but the current user is:
	'S-1-5-21-190261132-2244667103-1434590694-1001'
To add an exception for this directory, call:

	git config --global --add safe.directory C:/Windows/System32/simple-project

To Reproduce
Steps to reproduce the behavior:

  1. Launch Synectic
  2. Open any repository root directory using FileOpen Directory...
  3. See error

Expected behavior
Version control information should be populated for the newly opened directory, but instead the reverse side of the Explorer card indicates no repository/no branches was found.

Versions (please complete the following information):

  • OS: Windows
  • Synectic Version: 4.4.0
  • Git: 2.42.0.2

Additional context
This issue is also related to #1276.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug reports or bug fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions