Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/roles
diff options
context:
space:
mode:
authorrandx <dmitriy.zaporozhets@gmail.com>2012-08-29 03:03:04 +0400
committerrandx <dmitriy.zaporozhets@gmail.com>2012-08-29 03:03:04 +0400
commitad3a88cfd34aeed5ed69b4056e393580a686fb09 (patch)
tree72e831390e869c3c1a19bfaa2e297f54eab253ea /app/roles
parent1f5e2658f53b1214cd197ecad544ba2bd2975766 (diff)
Prepared for gitolite v3
Diffstat (limited to 'app/roles')
-rw-r--r--app/roles/push_event.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/roles/push_event.rb b/app/roles/push_event.rb
index ff8e28a2db2..a607f212f2a 100644
--- a/app/roles/push_event.rb
+++ b/app/roles/push_event.rb
@@ -90,6 +90,8 @@ module PushEvent
def push_with_commits?
md_ref? && commits.any? && parent_commit && last_commit
+ rescue Grit::NoSuchPathError
+ false
end
def last_push_to_non_root?