From 08c3936b83f3f67cbabf74289805a3938e2b7564 Mon Sep 17 00:00:00 2001 From: Jeroen Bobbeldijk <jeroen@vdmi.nl> Date: Mon, 11 Apr 2016 15:10:14 +0200 Subject: [PATCH] Check head unborn in rugged --- app/models/repository.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/repository.rb b/app/models/repository.rb index 8dead3a588..3e52ee5d0a 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -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 -- 2.30.9