1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-22 08:21:14 +00:00

scm: git: branches return cache too when there is no branch (#18923)

git-svn-id: http://svn.redmine.org/redmine/trunk@13927 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2015-01-21 10:58:57 +00:00
parent 64d65b6e27
commit 6097e247f4

View File

@ -76,7 +76,7 @@ module Redmine
end end
def branches def branches
return @branches if @branches return @branches if !@branches.nil?
@branches = [] @branches = []
cmd_args = %w|branch --no-color --verbose --no-abbrev| cmd_args = %w|branch --no-color --verbose --no-abbrev|
git_cmd(cmd_args) do |io| git_cmd(cmd_args) do |io|