refactor(mkimg): reduce commands when update repo

Signed-off-by: Celeste Liu <CoelacanthusHex@gmail.com>
This commit is contained in:
Celeste Liu 2023-07-10 18:40:41 +08:00
parent cab9b1a1ea
commit fc6ab3400c
No known key found for this signature in database
GPG key ID: E35C89E45867AE35

10
mkimg
View file

@ -77,9 +77,8 @@ then
if [[ -d u-boot ]]; then if [[ -d u-boot ]]; then
pushd u-boot pushd u-boot
git checkout master -- ':(top)' git checkout HEAD -- ':(top)'
git checkout master git fetch origin
git pull --rebase
git checkout v2023.04 git checkout v2023.04
popd popd
else else
@ -97,9 +96,8 @@ then
if [[ -d opensbi ]]; then if [[ -d opensbi ]]; then
pushd opensbi pushd opensbi
git checkout master -- ':(top)' git checkout HEAD -- ':(top)'
git checkout master git fetch origin
git pull --rebase
git checkout v2023.04 git checkout v2023.04
popd popd
else else