lib/gitlab_git/repository.rb in gitlab_git-7.1.10 vs lib/gitlab_git/repository.rb in gitlab_git-7.1.11
- old
+ new
@@ -453,10 +453,11 @@
# "id" => ....
# }
# }
#
def submodules(ref)
- commit = rugged.rev_parse(ref)
+ commit = rev_parse_target(ref)
+ return {} unless commit
begin
content = blob_content(commit, ".gitmodules")
rescue InvalidBlobName
return {}