diff --git a/app/models/repository/git.rb b/app/models/repository/git.rb index 7d96d002c..4ad8b6a16 100644 --- a/app/models/repository/git.rb +++ b/app/models/repository/git.rb @@ -77,6 +77,9 @@ class Repository::Git < Repository def default_branch scm.default_branch + rescue Exception => e + logger.error "git: error during get default branch: #{e.message}" + nil end def find_changeset_by_name(name)