From aaf14933e427cf13e056fe56f875a5a83294bdf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Sun, 9 Nov 2025 06:30:00 +0300 Subject: [PATCH] checkout --- dbg.clone | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbg.clone b/dbg.clone index cdbd3f3..b8d518d 100755 --- a/dbg.clone +++ b/dbg.clone @@ -2,6 +2,7 @@ SDIR=$(cd "$(dirname "$0")" ; pwd -P) DST_DIR=/Users/mk/test-dist +MAIH_BRANCH=main REPO_URL=https://github.com/kornerr/ru TMP_BRANCHES=/tmp/dbg-branches @@ -12,11 +13,13 @@ fi # Pull the latest changes cd $DST_DIR +git chckout -f $MAIN_BRANCH git pull # Find out the latest commit in the whole repo +git branch -av --sort=-committerdate cmt=`git branch -av --sort=-committerdate | head -n1 | cut -d' ' -f4` echo "Latest commit: $cmt" # Switch to the latest branch -git checkout $cmt +#git checkout $cmt