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() {
pushd $repo
if [ $? != 0 ] ; then exit 1; fi
if [ -z $git_tag ] ; then
git checkout $tree
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
fi
else
git checkout $git_tag
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