Move fetch after cd command

pull/513/head
Daishan 2020-08-03 09:54:00 -07:00
parent 128d10be16
commit cbf706c0bf
1 changed files with 1 additions and 1 deletions

View File

@ -28,9 +28,9 @@ for f in packages/*; do
if [[ $type == 'git' ]]; then
mkdir -p /tmp/tmp-charts
git clone --depth=1 --no-tags $url /tmp/tmp-charts
git fetch origin $commit
pwd=$(pwd)
cd /tmp/tmp-charts
git fetch origin $commit
git checkout $commit
cd $pwd
cp -r /tmp/tmp-charts/${subdirectory} ${f}/charts-original