From: Oleg Broytman Date: Wed, 24 Feb 2016 10:27:16 +0000 (+0300) Subject: .bash_prompt: do not call git update-index X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=36fa779cd03ddada6324c8b5b38145dc3b0a8b41;p=dotfiles.git .bash_prompt: do not call git update-index Avoid touching .git and triggering backup. --- diff --git a/.bash_prompt b/.bash_prompt index 5b5c80f..f7ae3bb 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -23,7 +23,7 @@ prompt_git() { if [ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" == "false" ]; then # ensure index is up to date - git update-index --really-refresh -q &>/dev/null + #git update-index --really-refresh -q &>/dev/null # check for uncommitted changes in the index if ! $(git diff --quiet --ignore-submodules --cached); then