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