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

"Dubious ownership in repository" error running Docker container #81

Open
C-Duv opened this issue Oct 4, 2022 · 0 comments
Open

"Dubious ownership in repository" error running Docker container #81

C-Duv opened this issue Oct 4, 2022 · 0 comments

Comments

@C-Duv
Copy link

C-Duv commented Oct 4, 2022

I tried to run git-fame via Docker using the following commands but got an "fatal: detected dubious ownership in repository at '/repo'" error:

# Build playground
cd "$(mktemp -d)"
git init .
echo "foo" > file1
echo "bar" > file2
git commit -a -m "First commit"
# Run git-fame
docker run --rm casperdcl/git-fame --help
docker run --rm -v "$(pwd)":/repo casperdcl/git-fame

Obtained output is:

fatal: detected dubious ownership in repository at '/repo'
To add an exception for this directory, call:

	git config --global --add safe.directory /repo
Processing: 100%|██████████| 1/1 [00:00<00:00, 695.69file/s]
error: too many arguments given outside repository
usage: git shortlog [<options>] [<revision-range>] [[--] <path>...]
   or: git log --pretty=short | git shortlog [<options>]

    -c, --committer       group by committer rather than author
    -n, --numbered        sort output according to the number of commits per author
    -s, --summary         suppress commit descriptions, only provides commit count
    -e, --email           show the email address of each author
    -w[<w>[,<i1>[,<i2>]]]
                          linewrap output
    --group <field>       group by field

Total 
| Author   | loc   | coms   | fils   |  distribution   |
|----------|-------|--------|--------|-----------------|

I guess the git config --global --add safe.directory /repo should be done in the casperdcl/git-fame Docker image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant