From 8ef4e30fc5bedd0de9fb896424104972a944561f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 30 Oct 2010 11:48:03 +0200 Subject: [PATCH] Pass '-d -P' to 'cvs update'. --- sunrise-commit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }