# File lib/plugins/git-sync.rb, line 55
  def sync project, config, opts
    unless config.git_sync_local_branch
      $stderr.puts "Please run ditz reconfigure and set the local and remote branch names"
      return
    end

    Dir.chdir $project_root
    puts "[in #{$project_root}]"
    sh "git add *.yaml", :force => true, :fake => opts[:dry_run]
    sh "git commit -m 'issue updates'", :force => true, :fake => opts[:dry_run]
    sh "git pull", :fake => opts[:dry_run]
    sh "git push #{config.git_sync_remote_repo} #{config.git_sync_local_branch}:#{config.git_sync_remote_branch}", :fake => opts[:dry_run]
    puts
    puts "Ditz issue state synchronized."
  end