Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

Fix returning wrong blob id bug in repo.diff(a, b, *paths) #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryosuzuki
Copy link

Bug

Return wrong blob object when repo.diff like this

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

blob = repo.diff(base, head).first.b_blob
# => #<Grit::Blob "0218f96"> 

Fix

Return wrong blob object when repo.diff like this

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

blob = repo.diff(base, head).first.b_blob
=> #<Grit::Blob "00dd8a636fd79e9436f792cac68f9d2dd3708399"> 

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 82d08a5 on mitakalab:diff into ca49cdd on gitlabhq:master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants