1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2025-06-04 00:23:58 +00:00

Fix "yadm clone" when not run in "$YADM_WORK".

This commit is contained in:
Christof Warlich 2025-01-05 09:08:53 +01:00
parent ec10041024
commit cbaf46a4d4

4
yadm
View File

@ -792,6 +792,8 @@ function clean() {
function clone() {
cd_work "Clone" || return
DO_BOOTSTRAP=1
local -a args
local -i do_checkout=1
@ -870,8 +872,6 @@ function clone() {
if [[ $do_checkout -ne 0 ]]; then
[ -n "$DEBUG" ] && display_private_perms "pre-checkout"
cd_work "Clone" || return
"$GIT_PROGRAM" ls-files --deleted | while IFS= read -r file; do
"$GIT_PROGRAM" checkout -- ":/$file"
done