refactored git-prompt to do a single call to spawn. This should fix #8