xo-cmake: explicit demux branch for pushing subtrees
Some checks failed
XO cmake xo-cpp-builder / build (push) Has been cancelled

This commit is contained in:
Roland Conybeare 2026-05-23 11:17:04 -04:00
commit e6e9e7afd9

View file

@ -278,7 +278,8 @@ fi
if [[ $split_umbrella_remote_flag -eq 1 ]]; then
if [[ -n "$xoname" ]]; then
#branch=$(git branch --show-current)
cmd="git subtree split --rejoin --prefix=$xoname"
demux_branch=_demux/$xoname
cmd="git subtree split --rejoin --prefix=$xoname -b ${demux_branch}"
if [[ $noop_flag -eq 1 ]]; then
echo $cmd
@ -304,12 +305,19 @@ fi
if [[ $push_umbrella_remote_flag -eq 1 ]]; then
if [[ -n "$xoname" ]]; then
branch=$(git branch --show-current)
cmd="git subtree push --rejoin --prefix=$xoname $xoname ${branch}"
demux_branch=_demux/$xoname
cmd1="git subtree split --rejoin --prefix=$xoname -b ${demux_branch}"
remote=${xoname}
remote_branch=${branch}
cmd2="git push ${remote} ${demux_branch}:${remote_branch}"
#cmd="git subtree push --rejoin --prefix=$xoname $xoname ${branch}"
if [[ $noop_flag -eq 1 ]]; then
echo $cmd
echo $cmd1
echo $cmd2
else
$cmd
$cmd1
$cmd2
fi
fi
fi