diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-23 12:29:47 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-10-23 12:29:47 +0400 |
commit | b2df61d85ab295a9ba4585f667537a9afc3efc6a (patch) | |
tree | 9a03faeb2668521e949b3708bcaa347d2977ac6d /app/roles | |
parent | 9902f1af6edc0b6c0a935fb3578715d20636d76e (diff) |
Fix 500 error on admin project if empty
Diffstat (limited to 'app/roles')
-rw-r--r-- | app/roles/repository.rb | 2 |
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 |