From: Zac Medico Date: Thu, 7 Oct 2010 20:43:58 +0000 (-0700) Subject: mkrelease.sh: Fix ChangeLog generation for --tag. X-Git-Tag: v2.1.9.15~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5b757cd2b2091740f9e1b2468deb60b4529e072;p=portage.git mkrelease.sh: Fix ChangeLog generation for --tag. --- diff --git a/mkrelease.sh b/mkrelease.sh index 221d8a8b9..c1890e443 100755 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -73,7 +73,11 @@ rm -rf "$SOURCE_DIR" || die "directory cleanup failed" echo ">>> Creating Changelog" git_log_opts="" -[ -n "$CHANGELOG_REVISION" ] && git_log_opts+=" $CHANGELOG_REVISION^.." +if [ -n "$CHANGELOG_REVISION" ] ; then + git_log_opts+=" $CHANGELOG_REVISION^..$TREE_ISH" +else + git_log_opts+=" $TREE_ISH" +fi skip_next=false git log $git_log_opts | fmt -w 80 -p " " | while read ; do if [[ $skip_next = true ]] ; then