Fixes git stashing issue on dirty HEAD

- Previously a git stash would happen regardless. Now git-issues checks
  if the branch is dirty and stashes accordingly.

Fixes: a79062