diff --git a/scripts/libmakepkg/source/git.sh.in b/scripts/libmakepkg/source/git.sh.in index 700f8fdf..0f835c3c 100644 --- a/scripts/libmakepkg/source/git.sh.in +++ b/scripts/libmakepkg/source/git.sh.in @@ -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