diff --git a/sunrise-commit b/sunrise-commit index 22a0511..6a0530b 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -399,6 +399,11 @@ main() { ebuild-commit) check_for_changes || die 'No changes found to commit.' + if [ -z "${noupdate}" ]; then + sayv "Updating the repository..." + vcs_update + fi + # With DVCS repos, we do not do ChangeLogs by default... # ...at least unless they're already there. if [ ${SC_VCS#git-} = svn -o ${SC_VCS} = cvs -o -f ChangeLog ]; then @@ -443,11 +448,6 @@ main() { fi fi - if [ -z "${noupdate}" ]; then - sayv "Updating the repository..." - vcs_update - fi - if [ ${SC_VCS} != cvs -o -n "${noupdate}" ]; then vcs_status fi