resolve #228: git sync abort edge case

@kevgo