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