Skip to content
Snippets Groups Projects
Commit bcc2bc4c authored by garciadeblas's avatar garciadeblas
Browse files

Minor bug fixed in RO/start_build: fetching before checkout


Change-Id: Iaea68b92edd659e0b5c330f4864f1cca349e2808
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent e5e9827f
No related branches found
No related tags found
No related merge requests found
......@@ -27,13 +27,14 @@ OSM_load_config
if [ -d $OSM_MDG ]; then
INFO "reusing existing workspace"
cd $OSM_MDG
git pull
git pull
else
INFO "cloning MDG $OSM_MDG from $OSM_GIT_URL/$OSM_MDG"
git clone $OSM_GIT_URL/$OSM_MDG
cd $OSM_MDG
fi
if [ $# -gt 0 ]; then
git fetch origin +refs/for/master || FATAL "git fetch didn't work"
git checkout $1 || FATAL "git checkout '$1' didn't work"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment