From 310a8716f49622d56271374b64da414772e90366 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Mon, 13 Jan 2025 14:22:19 +0100 Subject: [PATCH] pkg-auto: Fix syncing eclass files eclass is a file, as opposed to the package, which is a directory. So doing `git -C eclass/foo.eclass log -- .` will fail because we can't do "cd eclass/foo.eclass", which is what `-C` is trying to do. --- pkg_auto/impl/sync_with_gentoo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_auto/impl/sync_with_gentoo.sh b/pkg_auto/impl/sync_with_gentoo.sh index 2080f78c05..0ec280f895 100755 --- a/pkg_auto/impl/sync_with_gentoo.sh +++ b/pkg_auto/impl/sync_with_gentoo.sh @@ -169,7 +169,7 @@ function commit_with_gentoo_sha() { if [[ -z ${SKIP_GIT_INFO} ]]; then local commit - commit=$(git -C "${GENTOO}/${path}" log --pretty=oneline -1 -- . | cut -f1 -d' ') + commit=$(git -C "${GENTOO}" log --pretty=oneline -1 -- "${path}" | cut -f1 -d' ') commit_extra+=( --message "It's from Gentoo commit ${commit}." ) unset commit fi