diff --git a/nb b/nb index 064d318e2..1b85b4734 100755 --- a/nb +++ b/nb @@ -3675,7 +3675,7 @@ _git() { if ((NB_AUTO_SYNC)) then - ( sleep 2 + ( { # only commit when the index is dirty if _git dirty "${_notebook_path}" @@ -3685,7 +3685,7 @@ _git() { } || : ) & else - ( sleep 2 + ( _git_checkpoint_commit "${_notebook_path}" "${_message}" &>/dev/null || return 0 ) &