Fix wrong implementation of synchronisation_status by adding a do_fetch and a merge_status function. The result is an ugly but technically correct (limited) use of git commands.