From 156a5d7131cb7e33f795380bd7b532d7f2b1896f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 30 Oct 2010 11:48:59 +0200 Subject: [PATCH] Peform the repo update before calling echangelog. --- sunrise-commit | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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