From 32c31576efc71f7a8d02c78cdf7a9a3eabc75deb Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Thu, 14 May 2026 17:42:26 +0100 Subject: [PATCH] Use UID/GID not user/group name in db entries. --- gitattributesdb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitattributesdb b/gitattributesdb index 087e9eb..34f7e63 100755 --- a/gitattributesdb +++ b/gitattributesdb @@ -90,7 +90,7 @@ add_db_entry() { # On Linux, we can handle ACLs and xattrs too. ACL="$(getfacl -cEsp -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)" XATTR="$(getfattr -dh -- "$1" 2>/dev/null | base64 -w 0 2>/dev/null)" - if printf "%s %s %s %s\\n" "$(printf "%s" "$1" | base64 -w 0 2>/dev/null)" "$(TZ=UTC stat -c '%.9Y %.9X %U:%G %.4a' -- "$1" 2>/dev/null)" "${ACL:--}" \ + if printf "%s %s %s %s\\n" "$(printf "%s" "$1" | base64 -w 0 2>/dev/null)" "$(TZ=UTC stat -c '%.9Y %.9X %u:%g %.4a' -- "$1" 2>/dev/null)" "${ACL:--}" \ "${XATTR:--}" >>"$DB_TMP"; then (( VERBOSE == 1 )) && log "$1" else