Prepare git src with git worktree
This commit is contained in:
parent
9f78628f6c
commit
85c421f1cb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue