From 50e34d07ffa62ec045554d550ac4e849faf14cc5 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 11 Nov 2025 20:16:03 +0100 Subject: [PATCH] patch-git: Support git worktree MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit After “git worktree”, .git is a text file, not a directory. Resolves: RHEL-121947 --- patch-git.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch-git.lua b/patch-git.lua index f95800e..04cb061 100644 --- a/patch-git.lua +++ b/patch-git.lua @@ -487,7 +487,7 @@ local function generate_files() -- True if %_sourcedir refers to a Git repository and git is installed. local have_git = (posix == nil -- Not running under rpm. or (posix.access('/usr/bin/git', 'x') - and posix.access(sourcedir .. '/.git/.', 'x'))) + and posix.access(sourcedir .. '/.git', 'r'))) local commit_marker_contents -- For git_commit_file. if have_git then commit_marker_contents =