ensure index is up to date for prompt_git()

Note: git will ignore empty dirs unless they contain a .gitignore
file. The prompt should be correct with the caveat that it ignores any
new empty folders.

Ref: https://github.com/necolas/dotfiles/issues/17