if triggerRefresh was not called because the Workbench window is inactive 
the change in repositoriesChanged is lost, right?
Perhaps it would be easier to do the refresh in any case.
The refresh does not conflict with command line git.
When RCS gets inactive due to inactive Workbench window there can only be refreshes triggered by the last RCS run.