Skip to content

Commit 1eedc5a

Browse files
committed
packages - fix update check due to security warning with git 2.34.1
As with e041a0c we need to use the same user for running git as the owner of the repository files. This is also needed for an update check in rp_hasNewerModule as we check the last commit date of scriptmodules in RetroPie-Setup.
1 parent 5cf9b95 commit 1eedc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scriptmodules/packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ function rp_hasNewerModule() {
643643
local vendor="${__mod_info[$id/vendor]}"
644644
local repo_dir="$scriptdir"
645645
[[ "$vendor" != "RetroPie" ]] && repo_dir+="/ext/$vendor"
646-
local module_date="$(git -C "$repo_dir" log -1 --format=%cI -- "${__mod_info[$id/path]}")"
646+
local module_date="$(sudo -u "$user" git -C "$repo_dir" log -1 --format=%cI -- "${__mod_info[$id/path]}")"
647647
if rp_dateIsNewer "$pkg_date" "$module_date"; then
648648
ret=0
649649
fi

0 commit comments

Comments
 (0)