diff --git a/sunrise-commit b/sunrise-commit index 187aac2..22a0511 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -262,8 +262,10 @@ vcs_commit() { 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 -o ${SC_VCS} = cvs ]; then - ${SC_VCS} up -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." + if [ ${SC_VCS} = svn ]; then + svn up -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." + elif [ ${SC_VCS} = cvs ]; then + cvs up -d -P -- "${@}" || say "Warning: ${SC_VCS} up failed, trying to proceed anyway." fi }