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"