From c6544e261f36e64b2c3b77d5f3f806edb38b9f05 Mon Sep 17 00:00:00 2001 From: Olivier ORAND Date: Tue, 12 Sep 2023 13:19:18 +0000 Subject: [PATCH] Fixup! fix missing cd --- assets/check | 3 ++- assets/in | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/assets/check b/assets/check index a5b5edc..646b190 100755 --- a/assets/check +++ b/assets/check @@ -63,13 +63,14 @@ else echo "Sparse checkout enabled for $sparse_paths" git clone --single-branch --no-checkout --filter=tree:0 $uri $branchflag ${destination} $tagflag # git clone --single-branch --no-checkout --filter=blob:none $uri $branchflag ${destination} $tagflag + cd $destination git sparse-checkout init --cone git sparse-checkout set $sparse_paths git checkout $branch else git clone --single-branch $uri $branchflag $destination $tagflag + cd $destination fi - cd $destination fi if [ -n "$ref" ] && git cat-file -e "$ref"; then diff --git a/assets/in b/assets/in index 7618916..58be258 100755 --- a/assets/in +++ b/assets/in @@ -103,13 +103,15 @@ if [ "$sparse_checkout" == "true" ];then echo "Sparse checkout enabled for $sparse_paths" git clone --single-branch --no-checkout --filter=tree:0 $depthflag $uri $branchflag ${destination} $tagflag # git clone --single-branch --no-checkout --filter=blob:none $depthflag $uri $branchflag ${destination} $tagflag - git sparse-checkout init --cone - git sparse-checkout set $sparse_paths + cd $destination + git sparse-checkout init --cone + git sparse-checkout set $sparse_paths +# git checkout $branch else git clone --single-branch $depthflag $uri $branchflag $destination $tagflag + cd $destination fi -cd $destination git fetch origin refs/notes/*:refs/notes/* $tagflag