Defect #31120
Updated by Go MAEDA almost 6 years ago
I found that adding an if condition around line 84-89 solves the issue. change: <pre><code class="ruby"> branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$') bran = GitBranch.new(branch_rev[2]) bran.revision = branch_rev[3] bran.scmid = branch_rev[3] bran.is_default = ( branch_rev[1] == '*' ) @branches << bran </code></pre> To: <pre><code class="ruby"> if branch_rev = line.match('\s*(\*?)\s*(.*?)\s*([0-9a-f]{40}).*$') bran = GitBranch.new(branch_rev[2]) bran.revision = branch_rev[3] bran.scmid = branch_rev[3] bran.is_default = ( branch_rev[1] == '*' ) @branches << bran end </code></pre>