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

Minor bug fixed in git_functions: the branch origin/HEAD should not be created


Change-Id: I66cad44a67329ecf4543cdd2283a1294a0e496d6
Signed-off-by: default avatargarciadeblas <gerardo.garciadeblas@telefonica.com>
parent 14640f05
No related branches found
No related tags found
No related merge requests found
......@@ -2,8 +2,7 @@
GIT() {
CMD git "$@"
CMD git "$@"
}
......@@ -20,7 +19,7 @@ OSM_git_checkout() {
INFO "cloning MDG $OSM_MDG from $OSM_GIT_URL/$OSM_MDG"
GIT clone $OSM_GIT_URL/$OSM_MDG
cd $OSM_MDG
for remote in `git branch -r`; do GIT branch --track ${remote#origin/} $remote; done
for remote in `git branch -r |grep -v /HEAD`; do GIT branch --track ${remote#origin/} $remote; done
fi
if [ $# -gt 0 ]; then
......@@ -38,3 +37,4 @@ OSM_git_checkout() {
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