summaryrefslogtreecommitdiff
path: root/app/roles/repository.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/roles/repository.rb')
-rw-r--r--app/roles/repository.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/roles/repository.rb b/app/roles/repository.rb
index 882ec31033c..8942eaea754 100644
--- a/app/roles/repository.rb
+++ b/app/roles/repository.rb
@@ -137,6 +137,8 @@ module Repository
def has_commits?
!!commit
+ rescue Grit::NoSuchPathError
+ false
end
def root_ref