GitPlugin: check if connected to get remote commits.
Separate execution of refreshed functions in order to avoid infinite loops.