Fix stashed count

The variable `${git_dir}` was not available in the context of the
function `git-info`. It was only defined in the function `_git-action`.