pkgcore / pkgcheck

pkgcore-based QA utility for ebuild repos
https://pkgcore.github.io/pkgcheck
BSD 3-Clause "New" or "Revised" License
34 stars 29 forks source link

addons: git: pass --no-find-copies --no-find-copies-harder --find-ren… #618

Closed thesamesam closed 10 months ago

thesamesam commented 10 months ago

…ames to git log

I currently have a local git hack to allow configuring git to default to --find-copies-harder because it's extremely useful when working on ebuild repositories (prompted by a discussion with Eli Schwartz).

Unfortunately, this can confuse pkgcheck's git intergration because it'll call git log like:

git log --name-status --diff-filter=ARMD -z --pretty=tformat:%n%h%n%ct cc5b3b9f134a070c548faa4e3de17d615497d0b3..origin/HEAD

and get nothing back because (I think) git is interpreting some changes as copies rather than renames or new files.

Explicitly pass options to disable finding copies, even though normally this isn't necessary, to keep things working.