_ep_write_gitupdate_script(): uses variables that are not defined
There are a number of places in the _ep_write_gitupdate_script()
function in the ExternalProject
module where code has been cut-n-pasted from other places. This issue is about the variable named src_name
, which is referred to but not defined within that function.
The src_name
case is relatively harmless, since it is only used in error messages. It being unset will typically mean the right directory will still end up being shown, except with a trailing forward slash. The fix is to remove all mention of this in the _ep_write_gitupdate_script()
function because ${work_dir}
is already the full location on its own.
A variable named git_submodules_recurse
is also undefined, but it is more complex and is covered separately in #20335 (closed).