Update instructions for new taglist format 19/70019/1
authorStephen Kitt <skitt@redhat.com>
Fri, 23 Mar 2018 13:49:20 +0000 (14:49 +0100)
committerStephen Kitt <skitt@redhat.com>
Fri, 23 Mar 2018 13:49:20 +0000 (14:49 +0100)
The taglist now includes the project name, so we need to extract the
last field from it to retrieve the git hash.

Change-Id: I8e817d23e0cf3e261f09dcf13c980ca76e5620c0
Signed-off-by: Stephen Kitt <skitt@redhat.com>
docs/release-process/project-release.rst

index a16737cd197598a9ae94545bbc8620aaa850bcf5..87e7a607fafd64abac463e577dffb2bc2e5d8bb1 100644 (file)
@@ -46,7 +46,7 @@ Steps 4-7 as bash:
     PATCH_DIR=/tmp/patches
     PROJECT=odlparent
     VERSION=1.2.3
-    git checkout $(cat "$PATCH_DIR/taglist.log")
+    git checkout $(awk '{print $NF}' "$PATCH_DIR/taglist.log")
     git fetch "$PATCH_DIR/$PROJECT.bundle"
     git merge --ff-only FETCH_HEAD
     git tag -asm "$PROJECT $VERSION" "v$VERSION"