Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when doing invoke git-aggregate on MacOS #371

Open
ernesto-garcia-tecnativa opened this issue Feb 28, 2023 · 1 comment
Open

Error when doing invoke git-aggregate on MacOS #371

ernesto-garcia-tecnativa opened this issue Feb 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ernesto-garcia-tecnativa
Copy link

ernesto-garcia-tecnativa commented Feb 28, 2023

Describe the bug

fatal: detected dubious ownership in repository at '/opt/odoo/custom/src/odoo'
To add an exception for this directory, call:

        git config --global --add safe.directory /opt/odoo/custom/src/odoo
error: remote did not send all necessary objects
fatal: detected dubious ownership in repository at '/opt/odoo/custom/src/odoo'
To add an exception for this directory, call:

        git config --global --add safe.directory /opt/odoo/custom/src/odoo
(ERROR) [15:08:28] git_aggregator.repo  odoo   /opt/odoo/custom/src/odoo> error calling ('git', 'fetch', '--depth', '100', 'ocb', '15.0')
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/git_aggregator/main.py", line 219, in aggregate_repo
    repo.aggregate()
  File "/usr/local/lib/python3.8/site-packages/git_aggregator/repo.py", line 183, in aggregate
    self.fetch()
  File "/usr/local/lib/python3.8/site-packages/git_aggregator/repo.py", line 206, in fetch
    self.log_call(cmd, cwd=self.cwd)
  File "/usr/local/lib/python3.8/site-packages/git_aggregator/repo.py", line 160, in log_call
    ret = callwith(cmd, **kw)
  File "/usr/local/lib/python3.8/subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('git', 'fetch', '--depth', '100', 'ocb', '15.0')' returned non-zero exit status 1.

To Reproduce

Execute invoke git-aggregate

I have been able to solve it putting this line in the setup-devel.yaml

service:
  odoo:
    ...
    volumes:
      ...
      - "~/.gitconfig:/etc/gitconfig"
@ernesto-garcia-tecnativa ernesto-garcia-tecnativa added the bug Something isn't working label Feb 28, 2023
@bosd
Copy link

bosd commented Sep 17, 2023

I'm facing this as well on fedora.
Resolved it with using copier recopy --trust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants