TISTUD-4333 If git commit fails, don't close commit dialog and then show error dialog. Show error in the commit dialog so user can make changes and retry
  - refresh even if commit fails, since it mat have modified files
  - fix "else if" to just be an if when re-populating the staged/unstaged tables in commit dialog after commit.