diff --git a/sunrise-commit.in b/sunrise-commit.in index fe65848..b99637e 100755 --- a/sunrise-commit.in +++ b/sunrise-commit.in @@ -263,8 +263,10 @@ vcs_update() { # Unlike svn, DVCSes don't push the changes to their origins immediately. # That's why we don't force update to it right here. if [ ${SC_VCS} = svn ]; then + sayv "Updating the repository..." svn up -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." elif [ ${SC_VCS} = cvs ]; then + sayv "Updating the repository..." cvs up -d -P -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." fi } @@ -400,7 +402,6 @@ main() { check_for_changes || die 'No changes found to commit.' if [ -z "${noupdate}" ]; then - sayv "Updating the repository..." vcs_update fi @@ -516,7 +517,6 @@ main() { confirm if [ -z "${noupdate}" ]; then - sayv "Updating the repository..." vcs_update ${SC_CHANGE_LIST} fi