Commit 3404580e authored by Yoni Fogel's avatar Yoni Fogel

Update make.mysql.debug.env.bash to support remote branches when cloned locally

parent 4279e16c
...@@ -39,7 +39,11 @@ function github_clone() { ...@@ -39,7 +39,11 @@ function github_clone() {
pushd $repo pushd $repo
if [ $? != 0 ] ; then exit 1; fi if [ $? != 0 ] ; then exit 1; fi
if [ -z $git_tag ] ; then if [ -z $git_tag ] ; then
if ! git branch | grep "\<$tree\>" > /dev/null && git branch -a | grep "remotes/origin/$tree\>" > /dev/null; then
git checkout --track origin/$tree
else
git checkout $tree git checkout $tree
fi
else else
git checkout $git_tag git checkout $git_tag
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment