gitlabhq/gitlab_git — pull request #22 by catatsuy (2014-01-21 11:59:12+00:00)
Title: require 'active_support/core_ext/object/try'

To solve the problem that the `NoMethodError` when you read this by itself

```ruby:test.rb
require "gitlab_git"

repo_gitlab = Gitlab::Git::Repository.new('gitlab')

compare = Gitlab::Git::Compare.new(repo_gitlab, 'v6.0.0', 'master')
```

Error:
```
gitlab_git/lib/gitlab_git/compare.rb:15:in `initialize': undefined method `try' for "v6.0.0":String (NoMethodError)
from test.rb:5:in `new'
from test.rb:5:in `

'```