Prepare git src with git worktree

This commit is contained in:
Tom "Ravi" Hale 2024-02-26 17:00:26 +07:00 committed by Allan McRae
parent 9f78628f6c
commit 85c421f1cb

View file

@ -99,7 +99,7 @@ extract_git() {
exit 1
fi
cd_safe "$srcdir"
elif ! git clone --origin=origin -s "$dir" "${dir##*/}"; then
elif ! git -C "$dir" worktree add --force "${srcdir}/${dir##*/}"; then
error "$(gettext "Failure while creating working copy of %s %s repo")" "${repo}" "git"
plainerr "$(gettext "Aborting...")"
exit 1