# File lib/grit/ref.rb, line 63
    def self.current(repo, options = {})
      head = repo.git.fs_read('HEAD').chomp
      if /ref: refs\/heads\/(.*)/.match(head)
        id = repo.git.rev_parse(options, 'HEAD')
        commit = Commit.create(repo, :id => id)
        self.new($1, commit)
      end
    end