Skip to content

[Bug]: :: fatal: detected dubious ownership in repository at '/data' #22

@Saviq

Description

@Saviq

What happened?

Using git inside override-*: scriptlets tends to result in:

:: fatal: detected dubious ownership in repository at '/data'

E.g. https://github.com/MirServer/confined-shell-wip/actions/runs/4425288703/jobs/7760152845

What should have happened?

The project needs to be fed into the container in a way that git is happy with it.

Output of snap info $snap_name

N/A

Output of snap connections $snap_name

N/A

Output of snap version

N/A

Relevant log output

:: ++ git -C /data rev-list --count HEAD
:: fatal: detected dubious ownership in repository at '/data'
:: To add an exception for this directory, call:
::
:: 	git config --global --add safe.directory /data


### Teminal output of app

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions