resolves #123 smarter git-sync continue

@kevgo please review
Extract this command-line call into a helper method.