git stash: make sure that .git/logs/refs/ exists