Browse Source

fix(common): change dir before pulling latest from git

pull/36/head
Tom Hiller 6 years ago
committed by Martin Kepplinger
parent
commit
60a9adc9b3
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      common/download_coreboot.sh

+ 8
- 1
common/download_coreboot.sh View File

@ -36,6 +36,7 @@ function gitUpdate() {
## ##
################################################################################ ################################################################################
function checkoutTag() { function checkoutTag() {
cd "$DOCKER_COREBOOT_DIR" || exit
git checkout tags/"$COREBOOT_TAG" || exit git checkout tags/"$COREBOOT_TAG" || exit
git submodule update --recursive --remote git submodule update --recursive --remote
} }
@ -47,8 +48,14 @@ function checkoutTag() {
## ##
################################################################################ ################################################################################
function checkoutCommit() { function checkoutCommit() {
#edge should checkout master
cd "$DOCKER_COREBOOT_DIR" || exit
# bleeding-edge should checkout master
git checkout "$COREBOOT_COMMIT" || exit git checkout "$COREBOOT_COMMIT" || exit
if [ "$COREBOOT_COMMIT" == "master" ]; then
git pull --all
fi
git submodule update --recursive --remote git submodule update --recursive --remote
} }
################################################################################ ################################################################################


Loading…
Cancel
Save