def current_branch
    out = execute "git branch"
    out.split("\n").each do |l| 
      if !l.include?('(') && (l =~ /^\*\s+(\S+)/)
        return $1
      end
    end
    nil
  end
def current_branch
    out = execute "git branch"
    out.split("\n").each do |l| 
      if !l.include?('(') && (l =~ /^\*\s+(\S+)/)
        return $1
      end
    end
    nil
  end
returns the current branch