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

Commit

Permalink
Fix missing "data" method when accesing a Git::Submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
jacargentina committed Jun 7, 2013
1 parent cddc4f2 commit 775c7a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitlab_git/blob.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(repository, sha, ref, path)
end

def data
if raw_blob
if raw_blob and raw_blob.respond_to?('data')
raw_blob.data
else
nil
Expand Down

0 comments on commit 775c7a0

Please sign in to comment.