diff --git a/bin/git-changelog b/bin/git-changelog index b5c0e5d..5ae42d0 100755 --- a/bin/git-changelog +++ b/bin/git-changelog @@ -5,8 +5,8 @@ LIST=false TAG="n.n.n" GIT_LOG_OPTS="" -if git diff-index --quiet --ignore-submodules HEAD --; then - echo 'No changes to log.'; +if [[ -z $(git log --ignore-submodules origin..HEAD) ]]; then + echo 'No unpushed commits.'; exit 1; fi