This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to tag tags/v3/01-01-starter-app
in repository https://gitbox.apache.org/repos/asf/causeway-app-petclinic.git

commit d8c06754bd75acd2f1905e7495fd7bafd4f2218c
Author: Dan Haywood <[email protected]>
AuthorDate: Mon Jun 3 12:35:31 2024 +0100

    further fixes to recreate v3 script
---
 recreate-v3-tags.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/recreate-v3-tags.sh b/recreate-v3-tags.sh
index 6b09a49..ba8d8ce 100755
--- a/recreate-v3-tags.sh
+++ b/recreate-v3-tags.sh
@@ -71,10 +71,9 @@ then
   done
 fi
 
-
 if [ -n $FROM_TAG ]
 then
-  TAGV2=$FROM_TAG
+  TAGV2=$(cat $TAG_NAMES | head -1)
   TAGV3=$(echo $TAGV2 | sed s/v2/v3/)
 
   echo git merge $TAGV2 --no-edit
@@ -88,10 +87,12 @@ then
   then
     git tag $TAGV3
   fi
+  PREV=$TAGV2
+else
+  PREV=""
 fi
 
-PREV=$FROM_TAG
-for TAGV2 in $(cat $TAG_NAMES)
+for TAGV2 in $(cat $TAG_NAMES | tail +2)
 do
   TAGV3=$(echo $TAGV2 | sed s/v2/v3/)
 

Reply via email to