github plugin: only alias git=hub if `hub --version` works. #717

Merged
merged 1 commit into from Jan 22, 2012
Commits on Nov 24, 2011
  1. @blueyed

    Only alias git=hub if `hub --version` works.

    blueyed committed Nov 24, 2011
    `hub` is crashing for me on a old CentOS setup with
    "undefined method `shelljoin'".
    
    On first use of the `git` function it is now checked if
    `hub --version` returns successfully.