gitlabhq/grit — pull request #25 by ryooopan (2013-06-01 14:49:14+00:00)
Title: Fix returning wrong blob id bug in repo.diff(a, b, *paths)

### Bug

Return wrong blob object when `repo.diff` like this

```ruby
repo = Grit::Repo.new(".")
head = repo.commits.first
base = repo.commits.last

blob = repo.diff(base, head).first.b_blob
# => #
```

### Fix

Return wrong blob object when `repo.diff` like this

```ruby
repo = Grit::Repo.new(".")
head = repo.commits.first
base = repo.commits.last

blob = repo.diff(base, head).first.b_blob
=> #
```