diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-05-16 19:41:27 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-05-29 00:06:52 +0900 |
commit | f1dc4ce49c408708f256a3e3c6c75bbee49e2d6b (patch) | |
tree | 45ceac61e4797a5d929479ef53c1940b6600ccd1 | |
parent | 4ea1a40b9efcdb4dcb9a440ee1a2fef5ba6e060e (diff) | |
download | ruby-openssl-f1dc4ce49c408708f256a3e3c6c75bbee49e2d6b.tar.gz |
tool/sync-with-trunk: 'LASY' -> 'LAST'
-rwxr-xr-x | tool/sync-with-trunk | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tool/sync-with-trunk b/tool/sync-with-trunk index 00b80c00..d721d2ec 100755 --- a/tool/sync-with-trunk +++ b/tool/sync-with-trunk @@ -61,8 +61,8 @@ echo "#### Step 1. Sync '$BRANCH_EXTRACT' with 'ruby/trunk'" sed -ie "/^$graftpoint$/d" $(git rev-parse --git-common-dir)/info/grafts ) -LASY_SYNC_COMMIT=$(git log --format=format:%H -n1 --grep '^Sync-with-trunk: r') -LAST_SYNC_REV=$(git show --format=format:%B $LASY_SYNC_COMMIT | grep -Po '(?<=^Sync-with-trunk: r)[0-9]+$' | tail -n1) +LAST_SYNC_COMMIT=$(git log --format=format:%H -n1 --grep '^Sync-with-trunk: r') +LAST_SYNC_REV=$(git show --format=format:%B $LAST_SYNC_COMMIT | grep -Po '(?<=^Sync-with-trunk: r)[0-9]+$' | tail -n1) NEXT_SYNC_REV=$(sha1_to_rev $BRANCH_EXTRACT) [ "$LAST_SYNC_REV" = "$NEXT_SYNC_REV" ] && ( @@ -78,12 +78,12 @@ echo "#### Step 2. Rebase '$BRANCH_EXTRACT' on the last sync commit" cd tmp/sync-merge git checkout $BRANCH_MERGE git reset -q --hard $BRANCH_EXTRACT - git rebase --onto $LASY_SYNC_COMMIT $(rev_to_sha1 $BRANCH_EXTRACT $LAST_SYNC_REV) $BRANCH_MERGE + git rebase --onto $LAST_SYNC_COMMIT $(rev_to_sha1 $BRANCH_EXTRACT $LAST_SYNC_REV) $BRANCH_MERGE ) echo "#### Step 3. Merge '$BRANCH_MERGE' into '$(git rev-parse --abbrev-ref HEAD)'" commit_message=$( - commits=$(git log --oneline --format='%H %<(61,trunc)%s' $LASY_SYNC_COMMIT..$BRANCH_MERGE) + commits=$(git log --oneline --format='%H %<(61,trunc)%s' $LAST_SYNC_COMMIT..$BRANCH_MERGE) echo "Merge changes from Ruby trunk r$LAST_SYNC_REV..r$NEXT_SYNC_REV" echo "" echo "* ruby-trunk r$LAST_SYNC_REV..r$NEXT_SYNC_REV: ($(echo "$commits" | wc -l) commits)" |