Skip to content

Commit 25e16fd

Browse files
committed
doc: update maintaining instructions to get right commit hash.
Ensure we get the commit hash for the tag *after* we make the commit of the release. The instructions were getting the commit hash before but checking the git history it has actually been done correctly.
1 parent 6185af1 commit 25e16fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/maintaining.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ should be no need to check it.
3838
with tags such as `snapshot-N`::
3939

4040
VERSION=$(python setup.py --version)
41-
COMMIT=$(git rev-parse HEAD | cut -c1-12)
42-
sed -i "s,yyyy/mm/dd,$(date +%Y/%m/%d)," NEWS
41+
sed -i "s,(upcoming),($(date +%Y/%m/%d))," NEWS
4342
git commit -m "maint: release $VERSION" setup.py NEWS
43+
COMMIT=$(git rev-parse HEAD | cut -c1-12)
4444
git tag -s -u $GPGKEY \
4545
-m "Added tag release-$VERSION for commit $COMMIT" release-$VERSION
4646

0 commit comments

Comments
 (0)