Ввести регулярную публикацию отладочной версии #6

Merged
kornerr merged 45 commits from dbg into main 2025-11-12 04:39:21 +01:00
Showing only changes of commit c04a258b0e - Show all commits

View File

@@ -3,6 +3,7 @@ SDIR=$(cd "$(dirname "$0")" ; pwd -P)
DST_DIR=/Users/mk/test-dist
REPO_URL=https://github.com/kornerr/ru
TMP_BRANCHES=/tmp/dbg-branches
# Clone since the directory does not exist
if [ ! -d "$DST_DIR" ]; then
@@ -13,10 +14,9 @@ fi
cd $DST_DIR
git pull
# Find out the latest branch
git branch -r --sort=-committerdate | head -n2
branch=`git branch -r --sort=-committerdate | head -n2`
echo $branch
# Find out the latest commit in the whole repo
cmt=`git branch -av --sort=-committerdate | head -n1 | cut -d' ' -f4`
echo "Latest commit: $cmt"
# Switch to the latest branch
#git checkout $branch
git checkout $cmt