This commit is contained in:
Михаил Капелько
2025-11-09 06:41:14 +03:00
parent 40d5810317
commit 542f37a79f

View File

@@ -2,7 +2,7 @@
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
DST_DIR=/Users/mk/test-dist
MAIN_BRANCH=main
#MAIN_BRANCH=main
REPO_URL=https://github.com/kornerr/ru
TMP_BRANCHES=/tmp/dbg-branches
@@ -13,12 +13,12 @@ fi
# ?? Pull the latest changes
cd $DST_DIR
git checkout -f $MAIN_BRANCH
#git checkout -f $MAIN_BRANCH
git fetch --all
# Find out the latest commit in the whole repo
git branch -av --sort=-committerdate
git branch -av --sort=-committerdate | tr -s ' ' | head -n1
#git branch -av --sort=-committerdate
#git branch -av --sort=-committerdate | tr -s ' ' | head -n1
cmt=`git branch -av --sort=-committerdate | tr -s ' ' | head -n1 | cut -d' ' -f3`
echo "Latest commit: $cmt"