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:
parent
64d65b6e27
commit
6097e247f4
@ -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|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user