Added index --rebuild task before --update-all in example cron script [ci skip]

This commit is contained in:
Nathan Broadbent
2011-12-20 11:13:22 +08:00
parent ebb646b233
commit 9715265c79

View File

@@ -245,7 +245,7 @@ _git_index_update_all_branches() {
# Updates all git repositories with clean working directories. # Updates all git repositories with clean working directories.
# Use the following cron configuration: # Use the following cron configuration:
# */6 * * * * /bin/bash -c '. $HOME/.bashrc && git_index --update-all' # */6 * * * * /bin/bash -c '. $HOME/.bashrc && git_index --rebuild && git_index --update-all'
function _git_index_update_all() { function _git_index_update_all() {
echo -e "== Safely updating all local branches in $_bld_col$(_git_index_count)$_txt_col repos...\n" echo -e "== Safely updating all local branches in $_bld_col$(_git_index_count)$_txt_col repos...\n"
_git_index_batch_cmd _git_index_update_all_branches _git_index_batch_cmd _git_index_update_all_branches