mirror of
https://github.com/TheLocehiliosan/yadm
synced 2025-06-05 17:13:58 +00:00
Fix "yadm clone" when not run in "$YADM_WORK".
This commit is contained in:
parent
ec10041024
commit
cbaf46a4d4
4
yadm
4
yadm
@ -792,6 +792,8 @@ function clean() {
|
|||||||
|
|
||||||
function clone() {
|
function clone() {
|
||||||
|
|
||||||
|
cd_work "Clone" || return
|
||||||
|
|
||||||
DO_BOOTSTRAP=1
|
DO_BOOTSTRAP=1
|
||||||
local -a args
|
local -a args
|
||||||
local -i do_checkout=1
|
local -i do_checkout=1
|
||||||
@ -870,8 +872,6 @@ function clone() {
|
|||||||
if [[ $do_checkout -ne 0 ]]; then
|
if [[ $do_checkout -ne 0 ]]; then
|
||||||
[ -n "$DEBUG" ] && display_private_perms "pre-checkout"
|
[ -n "$DEBUG" ] && display_private_perms "pre-checkout"
|
||||||
|
|
||||||
cd_work "Clone" || return
|
|
||||||
|
|
||||||
"$GIT_PROGRAM" ls-files --deleted | while IFS= read -r file; do
|
"$GIT_PROGRAM" ls-files --deleted | while IFS= read -r file; do
|
||||||
"$GIT_PROGRAM" checkout -- ":/$file"
|
"$GIT_PROGRAM" checkout -- ":/$file"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user