Skip to content

Commit 386035e

Browse files
author
Nicolas
committed
Merge pull request #350 from korin/patch-2
return [] if error occured on branches or tags check
2 parents 2912c1d + 1fa2928 commit 386035e

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
@@ -94,7 +94,7 @@ def branches
9494
end
9595
@branches.sort!
9696
rescue ScmCommandAborted
97-
nil
97+
[]
9898
end
9999

100100

@@ -107,7 +107,7 @@ def tags
107107
end
108108
@tags
109109
rescue ScmCommandAborted
110-
nil
110+
[]
111111
end
112112

113113

0 commit comments

Comments
 (0)