# File icon-artist/gitrepo.rb, line 104
    def initialize(opts={})
      if opts[:working_dir]
        @working_dir = opts[:working_dir]
      else
        @working_dir = File.expand_path('.')
      end

      @git = Git.open(@working_dir)

      @branches = {:remote => [], :local => []}

      @git.branches.remote.each do |b|
        @branches[:remote] += [b.name]
      end

      @git.branches.local.each do |b|
        @branches[:local] += [b.name]
      end
    end