From 3c7b7518ef07ce3da54c9bbdb82fc94e616d7772 Mon Sep 17 00:00:00 2001 From: Nathan Phillip Brink Date: Wed, 27 Oct 2010 16:27:20 -0400 Subject: [PATCH] Make the -d option disable updating the local repository. It originally enabled updating the local repository, performing the reverse of its documented functionality. --- sunrise-commit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunrise-commit b/sunrise-commit index 8a26783..7a0c1e5 100755 --- a/sunrise-commit +++ b/sunrise-commit @@ -475,7 +475,7 @@ main() { confirm fi - if [ -n "${noupdate}" ]; then + if [ -z "${noupdate}" ]; then sayv "Updating the repository..." vcs_update fi @@ -508,7 +508,7 @@ main() { say "${BGREEN}${SC_CP}: ${commitmsg}${RESET}" confirm - if [ -n "${noupdate}" ]; then + if [ -z "${noupdate}" ]; then sayv "Updating the repository..." vcs_update ${SC_CHANGE_LIST} fi