Skip to content

Commit 1fa2928

Browse files
committed
return [] if error occured on branches or tags check
other parts of code expects array and test it with empty? method
1 parent 79efb6c commit 1fa2928

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/redmine/scm/adapters/xitolite_adapter.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def branches
9292
end
9393
@branches.sort!
9494
rescue ScmCommandAborted
95-
nil
95+
[]
9696
end
9797

9898

@@ -105,7 +105,7 @@ def tags
105105
end
106106
@tags
107107
rescue ScmCommandAborted
108-
nil
108+
[]
109109
end
110110

111111

0 commit comments

Comments
 (0)