mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
Update make.mysql.debug.env.bash to support remote branches when cloned locally
This commit is contained in:
parent
9d7899ed99
commit
f8277efc05
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue