Corrected check for changes in changes.xnml.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/commit/46da9d1a Tree: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/tree/46da9d1a Diff: http://git-wip-us.apache.org/repos/asf/logging-log4cxx/diff/46da9d1a Branch: refs/heads/next_stable Commit: 46da9d1a6b4e7e5e28201a60323ec07ca141bf3b Parents: 991982f Author: Thorsten Schöning <[email protected]> Authored: Tue Aug 15 17:33:12 2017 +0200 Committer: Thorsten Schöning <[email protected]> Committed: Tue Aug 15 17:33:12 2017 +0200 ---------------------------------------------------------------------- releasePrepare.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4cxx/blob/46da9d1a/releasePrepare.sh ---------------------------------------------------------------------- diff --git a/releasePrepare.sh b/releasePrepare.sh index 2e34839..cd02a34 100755 --- a/releasePrepare.sh +++ b/releasePrepare.sh @@ -34,7 +34,7 @@ fi today=$(date "+%Y-%m-%d") sed -i -r "1,/date=\".+?\"/ s/date=\".+?\"/date=\"${today}\"/" "src/changes/changes.xml" git add "src/changes/changes.xml" -if git diff-index --quiet HEAD +if ! git diff-index --quiet HEAD then git commit -m "Set release date to today." commit_changes=$(git log --max-count=1 | grep "commit" | cut -d " " -f 2)
