From e467f0bba9b67d1bb17b37d7a2b71c49945e61b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sat, 13 Jun 2015 12:34:40 +0200 Subject: [PATCH] don't fail on errors in initial branches method --- lib/git_adapter_patch.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/git_adapter_patch.rb b/lib/git_adapter_patch.rb index b3fe79a..8d6f308 100644 --- a/lib/git_adapter_patch.rb +++ b/lib/git_adapter_patch.rb @@ -11,6 +11,7 @@ module Redmine def branches(*args) all_branches = branches_original(*args) + return [] if !all_branches all_branches.find_all { |b| !b.start_with?("wip/") } end end