Skip to content

Commit

Permalink
Repository#commits_until: use #head instead of 'HEAD'
Browse files Browse the repository at this point in the history
  • Loading branch information
mmozuras committed Sep 26, 2014
1 parent d729fc1 commit 5e510a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pronto/git/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def show_commit(sha)

def commits_until(sha)
result = []
@repo.walk('HEAD', Rugged::SORT_TOPO).take_while do |commit|
@repo.walk(head, Rugged::SORT_TOPO).take_while do |commit|
result << commit.oid
!commit.oid.start_with?(sha)
end
Expand Down

0 comments on commit 5e510a9

Please sign in to comment.