diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-01-21 10:58:57 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2015-01-21 10:58:57 +0000 |
commit | 6097e247f4a6d305fb674f9035799a0b67d13fd1 (patch) | |
tree | 6b69f22b7f15979ca399cf76e18ace1451c1017a /lib/redmine/scm/adapters/git_adapter.rb | |
parent | 64d65b6e27ce7eab6dfa6d0d51bd73c16b2afb06 (diff) | |
download | redmine-6097e247f4a6d305fb674f9035799a0b67d13fd1.tar.gz redmine-6097e247f4a6d305fb674f9035799a0b67d13fd1.zip |
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
Diffstat (limited to 'lib/redmine/scm/adapters/git_adapter.rb')
-rw-r--r-- | lib/redmine/scm/adapters/git_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/scm/adapters/git_adapter.rb b/lib/redmine/scm/adapters/git_adapter.rb index 513d4a106..b12bbea34 100644 --- a/lib/redmine/scm/adapters/git_adapter.rb +++ b/lib/redmine/scm/adapters/git_adapter.rb @@ -76,7 +76,7 @@ module Redmine end def branches - return @branches if @branches + return @branches if !@branches.nil? @branches = [] cmd_args = %w|branch --no-color --verbose --no-abbrev| git_cmd(cmd_args) do |io| |