Only verbosely output ``Updating the repository...'' when actually attempting to upate the repository.
This commit is contained in:
parent
5a693ebacf
commit
ce70c2dd65
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user