Check current branch before sync