]> source.dussan.org Git - redmine.git/commitdiff
Merged r18046 from trunk to 3.4-stable (#31120).
authorGo MAEDA <maeda@farend.jp>
Sun, 7 Apr 2019 07:42:58 +0000 (07:42 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 7 Apr 2019 07:42:58 +0000 (07:42 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@18048 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/scm/adapters/git_adapter.rb

index fcc77f393a5b702bdbf2fbc8a2cb4821cfcfb63e..481d6138f37e9ad3f67a337ca63f589190077473 100644 (file)
@@ -83,6 +83,7 @@ module Redmine
             io.each_line do |line|
               branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$')
               bran = GitBranch.new(branch_rev[2])
+              next unless branch_rev
               bran.revision =  branch_rev[3]
               bran.scmid    =  branch_rev[3]
               bran.is_default = ( branch_rev[1] == '*' )