From 542f37a79f226d7546729aa66eb811f0c5bbfcd2 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:41:14 +0300 Subject: [PATCH] simplify --- dbg.clone | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbg.clone b/dbg.clone index ae723a6..d0af619 100755 --- a/dbg.clone +++ b/dbg.clone @@ -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"