X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=jenkins%2Fcommon%2Fgit_functions;h=afd0962b012f437489e1c9e6247c5b9920952cc6;hb=e460692a8194bba33a76164c6d0def8bfc3e4745;hp=7856623b7c0e3516478df03b6fe813a1bd56efee;hpb=14640f05886826be6f647b34963d046dcd39140f;p=osm%2Fdevops.git diff --git a/jenkins/common/git_functions b/jenkins/common/git_functions index 7856623b..afd0962b 100644 --- a/jenkins/common/git_functions +++ b/jenkins/common/git_functions @@ -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 } +