diff --git a/patch-git.lua b/patch-git.lua index 04f201b..f95800e 100644 --- a/patch-git.lua +++ b/patch-git.lua @@ -576,12 +576,18 @@ local function emit_sources() max = tointeger(k) end end + + -- The centpkg pre-push-check recognizes this prefix on Source + -- files and does not fail if these sources are neither committed + -- to the Git repository nor listed in the sources file. + local auto_generated = 'auto-generated/' + local function emit(name) max = max + 1 print('Source' .. max .. ': ' .. name .. '\n') end - emit(git_commit_file) - emit(git_log_file) + emit(auto_generated .. git_commit_file) + emit(auto_generated .. git_log_file) emit('patch-git.lua') -- This file. end