From cbf706c0bfde5018a015d438430f4fbf8a31c7fa Mon Sep 17 00:00:00 2001 From: Daishan Date: Mon, 3 Aug 2020 09:54:00 -0700 Subject: [PATCH] Move fetch after cd command --- scripts/generate-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate-patch b/scripts/generate-patch index 76eb272ae..558474802 100755 --- a/scripts/generate-patch +++ b/scripts/generate-patch @@ -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