Skip to content

Commit

Permalink
Fixup! fix missing cd
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Sep 12, 2023
1 parent ed911ef commit c6544e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion assets/check
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions assets/in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c6544e2

Please sign in to comment.