Commit 08c3936b authored by Jeroen Bobbeldijk's avatar Jeroen Bobbeldijk

Check head unborn in rugged

parent 5999fec7
......@@ -896,7 +896,7 @@ class Repository
end
def main_language
unless empty?
unless empty? or rugged.head_unborn?
Linguist::Repository.new(rugged, rugged.head.target_id).language
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment