diff --git a/.bash_prompt b/.bash_prompt index 6204f5717..9a82b29b9 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -23,7 +23,7 @@ prompt_git() { # check if the current directory is in .git before running git checks if [ "$(git rev-parse --is-inside-git-dir 2> /dev/null)" == 'false' ]; then - if [[ -O "$(git rev-parse --show-toplevel)/.git/index" ]]; then + if [[ -O "$(git rev-parse --git-dir)/index" ]]; then git update-index --really-refresh -q &> /dev/null; fi;