Get Demo
bash-git-prompt 2.6.1 through 2.7.1 insecurely uses the /tmp/git-index-private$$ file, which has a predictable name.
Creating and using insecure temporary files can leave application and system data vulnerable to attack.