ensure index is up to date for prompt_git

remember 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/